Latest Articles

ESXCLI Basics: Configure Syslog Host

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

About Marek (286 Articles)
Marek is an IT professional with 14+ years of experience in the IT industry and is currently working as PSO Senior Consultant SDDC at VMware for the NEMEA region.

Leave a reply...