VMware Cloud Community
MLengaye
Contributor
Contributor
Jump to solution

Change Syslog Collector 5.1 configuration

Hi,

Could someone tell me how i can verify the configuration of my Syslog Collector? (not on Vcenter)

I want to change the size of the log file and add more rotation.

I edited the vmware-syslog.xml file in C:\programdata\vmare\...

I have restarted the service.

But how i can chek on my Esxi 5.1 if the correct setting are used?

I already checked in advancerd configuration, Syslog, but it's always the old settings...

Last question could i use Syslog 5.1 with Esxi 4.1?

Thanks!

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
spravtek
Expert
Expert
Jump to solution

This KB is for configuring syslog on ESXi 4.x: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=101662...

ESXi 4.x syslogging is different from 5.1, so options may vary ...

Basically, as long as the syslogs are comming in your defined folders on your syslog server then your server is configured correctly, as you already found the xml-file you know you can change folders there ...

That's about it.

View solution in original post

Reply
0 Kudos
5 Replies
spravtek
Expert
Expert
Jump to solution

Hi, welcome to the community ...

You can change these settings through vCLI.

Check out this KB: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&e...

Basically you'll be using this command:

esxcli system syslog config set --logdir=/path/to/directory/ --loghost=RemoteHostname --logdir-unique=true|false --default-rotate=NNN --default-size=NNN

This way you can set the default-rotate and default-size, along with all other settings ...

To see what is configured, use: esxcli system syslog config get

MLengaye
Contributor
Contributor
Jump to solution

Hi,

Thanks for your support spravtek.

Ok this is the result when i used these command on  Esxi 5.1

~ # esxcli system syslog config get
   Local Log Output: <none>
   Local Logging Default Rotation Size: 1024
   Local Logging Default Rotations: 8
   Log To Unique Subdirectory: false
   Remote Host: mycomputer.fqdn
~ #

But how i can verify my remote syslog configuration? Just editing the vmware-syslog.xml?

I've tried to add an Esxi 4.1 to my Syslog collector 5.1 i can see the folder with the hostname Ip, but only one file Syslog.log

Reply
0 Kudos
spravtek
Expert
Expert
Jump to solution

This KB is for configuring syslog on ESXi 4.x: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=101662...

ESXi 4.x syslogging is different from 5.1, so options may vary ...

Basically, as long as the syslogs are comming in your defined folders on your syslog server then your server is configured correctly, as you already found the xml-file you know you can change folders there ...

That's about it.

Reply
0 Kudos
MLengaye
Contributor
Contributor
Jump to solution

Hi,

Ok, i've made some check and all is working fine.

I have my Esxi 5.1 and Esxi 4.1 on Syslog Collector 5.1 (remote).

Thanks

Reply
0 Kudos
smithjr
Contributor
Contributor
Jump to solution

Hi MLengaye, whats steps are required to configure esxi 4.x with syslog collector 5.x ?

thanks

Reply
0 Kudos