<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Syslog messages show three dates in Switching</title>
    <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265787#M498107</link>
    <description>&lt;P&gt;I'm not sure what youre asking? My syslog server and all other messages are in the same timezone and are synchronized to the same NTP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some automated scripts that parse logs and I would prefer if the syslog messages from this switch did not have three date fields.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jan 2021 16:49:30 GMT</pubDate>
    <dc:creator>erasedhammer</dc:creator>
    <dc:date>2021-01-01T16:49:30Z</dc:date>
    <item>
      <title>Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265778#M498101</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Jan 1 11:03:06 sw.local 482: Jan 1 11:02:53: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: admin] [Source: 172.16.10.2] [localport: 22] at 11:02:53 EST5EDT Fri Jan 1 2021&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Switch: 3560x&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;IOS: 15.2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Why does syslog have three dates? The first date is the only one that I need/want.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Can I change this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 16:07:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265778#M498101</guid>
      <dc:creator>erasedhammer</dc:creator>
      <dc:date>2021-01-01T16:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265780#M498102</link>
      <description>&lt;P&gt;can you show us your syslog config on the device&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;INFRA2#show run | in log
service timestamps log datetime msec
logging trap debugging
logging facility local6
logging host 10.10.9.18&lt;/PRE&gt;
&lt;P&gt;output&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;*Jan  1 08:25:10.962: %SYS-5-CONFIG_I: Configured from console by console&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jan 2021 16:11:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265780#M498102</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2021-01-01T16:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265781#M498103</link>
      <description>&lt;P&gt;I think the service timestamps are to blame here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;service timestamps log datetime localtime&lt;BR /&gt;aaa authentication login default local&lt;BR /&gt;login block-for 1800 attempts 3 within 60&lt;BR /&gt;login on-failure log&lt;BR /&gt;login on-success log&lt;BR /&gt;logging host 172.16.15.3&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 16:14:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265781#M498103</guid>
      <dc:creator>erasedhammer</dc:creator>
      <dc:date>2021-01-01T16:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265784#M498105</link>
      <description>&lt;P&gt;Is your Syslog stay in the same time zone or different? then worth trying to change, this is not a service impact change so you can tweak and test here. and advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;service timestamps log datetime l&lt;STRONG&gt;ocaltime&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 16:23:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265784#M498105</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2021-01-01T16:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265787#M498107</link>
      <description>&lt;P&gt;I'm not sure what youre asking? My syslog server and all other messages are in the same timezone and are synchronized to the same NTP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some automated scripts that parse logs and I would prefer if the syslog messages from this switch did not have three date fields.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 16:49:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265787#M498107</guid>
      <dc:creator>erasedhammer</dc:creator>
      <dc:date>2021-01-01T16:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265789#M498109</link>
      <description>&lt;P&gt;if the all-in same zone you should get the message correctly on Syslog server - you can also check this on the device itself generating the same logs or is this logs you see in SYSLOG Server&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the device has correct logs,&lt;/P&gt;
&lt;P&gt;syslog only seeing these different logs, then you need to investigate on Syslog, how it writing and adding new context information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what Syslog server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 17:00:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265789#M498109</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2021-01-01T17:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265792#M498111</link>
      <description>&lt;P&gt;The logs I posted originally were from the syslog server&lt;/P&gt;&lt;P&gt;The logs on the switch itself look like this:&lt;/P&gt;&lt;P&gt;Jan 1 11:13:07: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: admin] [Source: 172.16.10.2] [localport: 22] at 11:13:07 EST5EDT Fri Jan 1 2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using rsyslog. I do see that rsyslog is adding the date and hostname at the start, but the switch is still putting the "at DATE" at the end of the message.&lt;/P&gt;&lt;P&gt;Perhaps I can make rsyslog itself stop putting date and hostname at the start of the message, but an alternative is to make the switch send syslogs as every other device normally would.&lt;/P&gt;&lt;P&gt;Would omitting service timestamps eliminate the timestamp at the beginning of the message?&lt;/P&gt;&lt;P&gt;What can be done to eliminate the date at the end of the message?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 17:10:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265792#M498111</guid>
      <dc:creator>erasedhammer</dc:creator>
      <dc:date>2021-01-01T17:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265801#M498112</link>
      <description>&lt;P&gt;applying "no service timestamp" eliminated the timestamps at the beginning of syslog messages.&lt;/P&gt;&lt;P&gt;The timestamp at the end of log in and out messages appears to be permanent.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 19:24:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265801#M498112</guid>
      <dc:creator>erasedhammer</dc:creator>
      <dc:date>2021-01-01T19:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265803#M498113</link>
      <description>&lt;P&gt;in that case, this is more to do with the&amp;nbsp; below lines : (try remove them and test it)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;login on-failure log&lt;BR /&gt;login on-success log&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;some reference :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.ipspace.net/2006/12/log-terminal-access-to-your-router.html" target="_blank"&gt;https://blog.ipspace.net/2006/12/log-terminal-access-to-your-router.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 19:42:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265803#M498113</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2021-01-01T19:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog messages show three dates</title>
      <link>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265854#M498120</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as far as I recall, timestamps have nothing to do with this syslog message. You can turn off all timestamping on the device, but the syslog would still give you the 'timestamp' at the end. This is because it is an integral part of the message body itself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this 'timestamp' is not really a timestamp, and unfortunately, there is no way to truncate this specific message body to NOT display just the last characters (the 'timestamp').&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense...&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 10:32:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/syslog-messages-show-three-dates/m-p/4265854#M498120</guid>
      <dc:creator>Georg Pauwen</dc:creator>
      <dc:date>2021-01-02T10:32:09Z</dc:date>
    </item>
  </channel>
</rss>

