Site icon Default Reasoning

ESXCLI Basics: Configure Syslog Host

unhide recovery partition

Another basic command, but essential for health monitoring of your hosts when using a Syslog Server. Here is a quick how-to.

  1. Connect to your host through SSH or open the DCUI.
  2. Setup the target Syslog Server and place logs in an unique subdirectory: # esxcli system syslog config set --logdir-unique true --loghost=udp://10.10.10.10:514
  3. Open the ports for Syslog on the firewall: # esxcli network firewall ruleset set –e true –r syslog
  4. Apply the configuration with: # esxcli system syslog reload
  5. Verify the configuration with: # esxcli system syslog config get
  6. Logout.

Note: mind the double dashes in step 2.

Done!

Verify if the ports are open on the firewall though vSphere Client or vSphere Web Client. If the syslog settings are not reflected in the Advanced Settings of the host after you configure them, they will be visible after a reboot.

Cheers!

– Marek.Z

Exit mobile version