<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=ESX%2FVMware_Syslog_Collector</id>
	<title>ESX/VMware Syslog Collector - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=ESX%2FVMware_Syslog_Collector"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=ESX/VMware_Syslog_Collector&amp;action=history"/>
	<updated>2026-05-07T03:51:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=ESX/VMware_Syslog_Collector&amp;diff=2439&amp;oldid=prev</id>
		<title>Kenneth at 21:49, 27 August 2015</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=ESX/VMware_Syslog_Collector&amp;diff=2439&amp;oldid=prev"/>
		<updated>2015-08-27T21:49:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== VMware Syslog Collector ==&lt;br /&gt;
&lt;br /&gt;
== Installation Defaults ==&lt;br /&gt;
&lt;br /&gt;
Install vSphere Syslog Collector to:&lt;br /&gt;
 C:\Program Files (x86)\VMware\VMware Syslog Collector\&lt;br /&gt;
&lt;br /&gt;
vSphere Syslog Collector Configuration:&lt;br /&gt;
* Repository directory:&lt;br /&gt;
 C:\Documents and Settings\All Users\Application Data\VMware\VMware Syslog Collector\Data\&lt;br /&gt;
 # I like to change to:&lt;br /&gt;
 C:\syslog\&lt;br /&gt;
* Size of log file before rotation: 2MB&lt;br /&gt;
* Log rotations to keep: 8  (I like to change to 30)&lt;br /&gt;
&lt;br /&gt;
vSphere Syslog Collector Server Port:&lt;br /&gt;
 514 (TCP Protocol and UDP Protocol)&lt;br /&gt;
&lt;br /&gt;
vSphere Syslog Collector Server SSL Port:&lt;br /&gt;
 1514 (Secure connection (SSL))&lt;br /&gt;
&lt;br /&gt;
== Configure ESXi 5.0 Server ==&lt;br /&gt;
&lt;br /&gt;
Display the existing 5 configuration options on the host using the command:&lt;br /&gt;
 esxcli system syslog config get&lt;br /&gt;
&lt;br /&gt;
Default settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   Default Rotation Size: 1024&lt;br /&gt;
   Default Rotations: 8&lt;br /&gt;
   Log Output: /scratch/log&lt;br /&gt;
   Log To Unique Subdirectory: false&lt;br /&gt;
   Remote Host: &amp;lt;none&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set new host configuration, specifying options to change, using a command similar to:&lt;br /&gt;
&lt;br /&gt;
 # reset to defaults&lt;br /&gt;
 for i in default-rotate default-size logdir loghost ; do esxcli system syslog config set --reset $i ; done&lt;br /&gt;
 esxcli system syslog config set --default-size=1024 --default-rotate=8 --logdir=/scratch/log --logdir-unique=false&lt;br /&gt;
&lt;br /&gt;
Remote log hosting:&lt;br /&gt;
 # Get configuration&lt;br /&gt;
 esxcli system syslog config get&lt;br /&gt;
&lt;br /&gt;
 # to configure remote syslog using TCP on port 514:&lt;br /&gt;
 #esxcli system syslog config set --loghost=&amp;#039;tcp://10.10.47.100:514&amp;#039;&lt;br /&gt;
 #esxcli system syslog config set --loghost=10.10.47.100&lt;br /&gt;
 esxcli system syslog config set --loghost=esxlogger&lt;br /&gt;
&lt;br /&gt;
 # may need to adjust the firewall too&lt;br /&gt;
 esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true&lt;br /&gt;
 esxcli network firewall refresh&lt;br /&gt;
&lt;br /&gt;
 # After making configuration changes, load the new configuration using the command:&lt;br /&gt;
 esxcli system syslog reload&lt;br /&gt;
&lt;br /&gt;
Example of configured setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# esxcli system syslog config get&lt;br /&gt;
   Local Log Output: &amp;lt;none&amp;gt;&lt;br /&gt;
   Local Logging Default Rotation Size: 1024&lt;br /&gt;
   Local Logging Default Rotations: 8&lt;br /&gt;
   Log To Unique Subdirectory: false&lt;br /&gt;
   Remote Host: esxlogger.oeey.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These can also be set from the GUI:&lt;br /&gt;
* vSphere Client GUI &amp;gt; Configuration &amp;gt; Software &amp;gt; Advanced Settings &amp;gt; Syslog.global.logHost&lt;br /&gt;
* vSphere Client GUI &amp;gt; Configuration &amp;gt; Software &amp;gt; Security Profile &amp;gt; Firewall &amp;gt; syslog&lt;br /&gt;
&lt;br /&gt;
Send message:&lt;br /&gt;
 # normally logged to /var/log/vmkernel.log and /var/log/syslog.log and /var/log/*.log too!&lt;br /&gt;
 esxcli system syslog mark --message=&amp;quot;this is a message&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can also test sending a message with:&lt;br /&gt;
 nc 10.10.47.100 514&lt;br /&gt;
 telnet 10.10.47.100 514&lt;br /&gt;
   ... message ...&lt;br /&gt;
&lt;br /&gt;
VCSA check service:&lt;br /&gt;
 /etc/init.d/syslog-collector status&lt;br /&gt;
 &lt;br /&gt;
 # config file:&lt;br /&gt;
 /etc/syslog-ng/syslog-collector.conf&lt;br /&gt;
References:&lt;br /&gt;
* [http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vcli.migration.doc_50%2Fcos_upgrade_technote.1.6.html vSphere Documentation Center - Logging in vSphere 5.0]&lt;br /&gt;
* VMware KB: Configuring syslog on ESXi 5.0 - http://kb.vmware.com/kb/2003322&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:VMware]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>