Changing log level for syslog.log
search cancel

Changing log level for syslog.log

book

Article ID: 320854

calendar_today

Updated On:

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.x
VMware vSphere ESXi 8.x

Resolution

  • Check Syslog config using esxcli commands using :

# 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

NOTE: 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: How to change configuration settings for Hostd service in vSphere ESXi 7.0 Update 2 and later

  • Reload config:

# esxcli system syslog reload

 

NOTE: 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.

It is required to do some filtering on the remote syslog server end (which is out of scope of vmsyslogd).