Changing log level for syslog.log
search cancel

Changing log level for syslog.log

book

Article ID: 320854

calendar_today

Updated On: 03-31-2025

Products

VMware vSphere ESXi

Issue/Introduction

Modifying current log level on syslog.
Cannot filter the logging levels on remote syslog server .

Environment

VMware vSphere ESXi 7.0

Resolution

Check Syslog config using esxcli commands as per :

https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/7-0/esxi-upgrade-7-0.html

# esxcli system syslog config get

 

Change log level using the command (changed to warning in the following example) :

# esxcli system syslog config set --log-level=warning

The command esxcli system syslog config set --log-level=<> does not affect log level of individual loggers.

 

You can confirm that this matches the configuration, using the command:

# /bin/configstorecli config current get -c esx -g services -k hostd -outfile tmp.json

 

And checking the log_level value in the tmp.json file.

If the log_level change is desired, please follow this KB article: https://knowledge.broadcom.com/external/article/319967

 

Reloaded config:

# esxcli system syslog reload

 

Please note that it is not possible to filter the logging levels on remote syslog server with the current implementation of vmsyslogd. All the local logs would be transmitted to the remote syslog server. Customer would need to do some filtering on the remote syslog server end(which is out of scope of vmsyslogd).