VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

configuring syslog powercli

Hi Luc,

if yu can suggest powercli way of configuring syslog server

esxcli system syslog config set --loghost=udp://[SYSLOG-SERVER]

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

If you are using a remote syslog server, it is on the remote syslog server where you configure where the logs should go.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

8 Replies
LucD
Leadership
Leadership
Jump to solution

Like this for example

$sLog = @{

    loghost = 'udp://192.168.1.23:514'

}


Get-VMHost -PipelineVariable esx |

ForEach-Object -Process {

    $esxcli = Get-EsxCli -VMHost $esx -V2

    $esxcli.system.syslog.config.set.Invoke($sLog)

}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

pastedImage_0.png

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

pastedImage_0.png

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

if you can suggest this is correct ocnfiguration

0 Kudos
LucD
Leadership
Leadership
Jump to solution

These are values you have to configure.

There is no correct/incorrect, it depends what you want.

See KB2003322 for more details.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

the only confusing part is where to give absolute path

i.e

ip/var/log/net_log

its accepting only ip of remote server not the directory path.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

If you are using a remote syslog server, it is on the remote syslog server where you configure where the logs should go.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

jvm2016
Hot Shot
Hot Shot
Jump to solution

oh thanks.

0 Kudos