{"id":1378,"date":"2016-06-13T09:00:18","date_gmt":"2016-06-13T13:00:18","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=1378"},"modified":"2020-11-22T09:57:15","modified_gmt":"2020-11-22T14:57:15","slug":"reload-syslog-configuration-on-esxi","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/scripting\/reload-syslog-configuration-on-esxi\/","title":{"rendered":"Reload syslog configuration on ESXi"},"content":{"rendered":"<p>I recently updated Log Insight to version 3.3.2 in my lab. After selecting the appropriate PAK file, the UI displayed a warning containing the following text:<\/p>\n<pre>Note that certain builds of ESXi need to have \ntheir syslog configuration reloaded after restart, \notherwise log data will stop forwarding. \nConfiguration can be reloaded from the <a href=\"https:\/\/loginsight-hostname\/admin\/vsphere\">vSphere \nIntegration page<\/a>. See the <a href=\"http:\/\/pubs.vmware.com\/log-insight-33\/index.jsp?utm_source=product&amp;utm_medium=referral&amp;utm_campaign=LogInsightProduct&amp;lang=en_US\">Online Help<\/a> for \nmore information.\n<\/pre>\n<p>I waited a couple hours after the upgrade to check back on the system and noticed that I was no longer collecting syslog data. I visited the vSphere Integration page and reviewed my hosts, but they were already configured as expected. I picked just one host and updated the configuration anyway, and that host started logging data again. For another host, I manually cleared the syslog.global.logHost value from the web client and then re-entered the logHost text. This also caused the host to start sending syslog data again. Interested in the minimum effort to &#8216;reload&#8217; syslog configuration (without needing to update\/reset logHost values) I found the following KB article: <a href=\"https:\/\/kb.vmware.com\/kb\/2003322\">https:\/\/kb.vmware.com\/kb\/2003322<\/a>. It appears that esxcli has an option to simply reload the configuration (using <span style=\"font-family: courier new;\">esxcli system syslog reload<\/span>). To run this on all hosts remaining in my inventory, I executed the following code:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>Get-VMHost | Sort-Object Name | %{\n  write-host -nonewline \"$($_.Name) reloading syslog:\"\n  (Get-EsxCli -VMHost $($_.Name) -v2).system.syslog.reload.invoke()\n}<\/code><\/pre>\n\n\n\n<p>Note: this requires the latest version (6.3 release 1) of PowerCLI. I hope someone finds this information helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently updated Log Insight to version 3.3.2 in my lab. After selecting the appropriate PAK file, the UI displayed a warning containing the following text: Note that certain builds of ESXi need to have their syslog configuration reloaded after &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/scripting\/reload-syslog-configuration-on-esxi\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-1378","post","type-post","status-publish","format-standard","hentry","category-scripting","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=1378"}],"version-history":[{"count":8,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1378\/revisions"}],"predecessor-version":[{"id":1566,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1378\/revisions\/1566"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=1378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=1378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}