Symptoms:
With the default settings, vCenter server is sending an huge amount of logs to the syslog server.
You are getting far more messages than wanted and would like that only the desired level of logs to be sent to Syslog server (e.g logs above warning).
Option | Description |
* | All log files are redirected to the remote machine. |
info | Only logs above or equal to informational level are redirected to the remote machine. |
notice | Only logs above or equal to notice level are redirected to the remote machine.Notice indicates normal but significant condition. |
warn | Only logs above or equal to warnings level are redirected to the remote machine. |
error | Only logs above or equal to error level are redirected to the remote machine. |
crit | Only critical log files are redirected to the remote machine. |
alert | Only logs above or equal to alert level are redirected to the remote machine. Alert indicates that action must be taken immediately. |
emerg | Only emergency log files are redirected to the remote machine. Emergency indicates that the system stopped responding and cannot be used. |
logger -p syslog.info "Info test - this won't appear at syslog server"
logger -p syslog.warn "Warn test - this won't appear at syslog server"
logger -p syslog.error "Error test - this will appear at syslog server"
logger -p syslog.crit "Crit test - this will appear at syslog server"