<?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 Cisco TCP Syslogs - Close Events Not Split in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29887#M5162</link>
    <description>&lt;P&gt;I've got a dev box that I'm running an instance of Splunk on and one of the things I am testing is the feasibility of using TCP for syslog.  Numerous folks and articles suggest TCP is definitely the way to go, and for many reasons, this is a sensible choice.  However, there are two items I cannot get to work as I expect which are in the way.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Close events do not split.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Here is an entry where the events are so rapid-fire that they don't split out into individual events of their own:&lt;/P&gt;

&lt;P&gt;&amp;lt;188&amp;gt;640624: 640621: Aug  9 2012 00:12:09.428 UTC: %CRYPTO-4-RECVD_PKT_MAC_ERR: decrypt: mac verify failed for connection id=2001 local=x.x.x.x remote=y.y.y.y spi=E78EE4D2 seqno=000022E9&amp;lt;188&amp;gt;640625: 640622: Aug  9 2012 00:12:14.012 UTC: %IPS-4-SIGNATURE: Sig:2004 Subsig:0 Sev:2 ICMP Echo Req [z.z.z.z:0 -&amp;gt; a.a.a.a:0]&lt;/P&gt;

&lt;P&gt;I expect this could be taken care of in props.conf with something like this:&lt;/P&gt;

&lt;P&gt;[source::tcp:5170]&lt;BR /&gt;
  BREAK_ONLY_BEFORE = (\&amp;lt;\d+\&amp;gt;\d)+&lt;/P&gt;

&lt;P&gt;I have also tried: \&amp;lt;\d{1,3}\&amp;gt;&lt;/P&gt;

&lt;P&gt;I figure there needs to be something simple I am missing in my RegEx for this statement.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;TCP logging sometimes stops.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Every now and then, one of my remote sites will undergo carrier maintenance and the logging will be unavailable for some time and logging doesn't ever seem to recover.  In a "show log", the output looks similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Trap logging: level informational, 6360 message lines logged
    Logging to 192.168.16.10  (tcp port 5140, audit disabled,
          link down),
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The quick way I have found to restart this is to remove and add my log host.  This isn't really practical either.  However, I haven't found out where to tell this to keep retrying after a certain amount of time.  This isn't specifically a Splunk thing, but I'm hoping someone out there has already run across this.&lt;/P&gt;

&lt;P&gt;Thanks in advance for the assistance!&lt;/P&gt;

&lt;P&gt;++I;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:13:44 GMT</pubDate>
    <dc:creator>iunderwood</dc:creator>
    <dc:date>2020-09-28T12:13:44Z</dc:date>
    <item>
      <title>Cisco TCP Syslogs - Close Events Not Split</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29887#M5162</link>
      <description>&lt;P&gt;I've got a dev box that I'm running an instance of Splunk on and one of the things I am testing is the feasibility of using TCP for syslog.  Numerous folks and articles suggest TCP is definitely the way to go, and for many reasons, this is a sensible choice.  However, there are two items I cannot get to work as I expect which are in the way.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Close events do not split.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Here is an entry where the events are so rapid-fire that they don't split out into individual events of their own:&lt;/P&gt;

&lt;P&gt;&amp;lt;188&amp;gt;640624: 640621: Aug  9 2012 00:12:09.428 UTC: %CRYPTO-4-RECVD_PKT_MAC_ERR: decrypt: mac verify failed for connection id=2001 local=x.x.x.x remote=y.y.y.y spi=E78EE4D2 seqno=000022E9&amp;lt;188&amp;gt;640625: 640622: Aug  9 2012 00:12:14.012 UTC: %IPS-4-SIGNATURE: Sig:2004 Subsig:0 Sev:2 ICMP Echo Req [z.z.z.z:0 -&amp;gt; a.a.a.a:0]&lt;/P&gt;

&lt;P&gt;I expect this could be taken care of in props.conf with something like this:&lt;/P&gt;

&lt;P&gt;[source::tcp:5170]&lt;BR /&gt;
  BREAK_ONLY_BEFORE = (\&amp;lt;\d+\&amp;gt;\d)+&lt;/P&gt;

&lt;P&gt;I have also tried: \&amp;lt;\d{1,3}\&amp;gt;&lt;/P&gt;

&lt;P&gt;I figure there needs to be something simple I am missing in my RegEx for this statement.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;TCP logging sometimes stops.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Every now and then, one of my remote sites will undergo carrier maintenance and the logging will be unavailable for some time and logging doesn't ever seem to recover.  In a "show log", the output looks similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Trap logging: level informational, 6360 message lines logged
    Logging to 192.168.16.10  (tcp port 5140, audit disabled,
          link down),
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The quick way I have found to restart this is to remove and add my log host.  This isn't really practical either.  However, I haven't found out where to tell this to keep retrying after a certain amount of time.  This isn't specifically a Splunk thing, but I'm hoping someone out there has already run across this.&lt;/P&gt;

&lt;P&gt;Thanks in advance for the assistance!&lt;/P&gt;

&lt;P&gt;++I;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29887#M5162</guid>
      <dc:creator>iunderwood</dc:creator>
      <dc:date>2020-09-28T12:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco TCP Syslogs - Close Events Not Split</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29888#M5163</link>
      <description>&lt;P&gt;We solved this problem somewhat unconventionally, but it works.  I wrote a C program (I'll see if I can post to splunkbase - need to make sure the bosses approve) that receives the TCP data from Cisco ASA and spools it to a file which Splunk then reads.  I assume it would work with some adjustment with IOS based devices, but I'm not sure.  It filters the &lt;CODE&gt;&amp;lt;xxx&amp;gt;&lt;/CODE&gt; part out entirely, even handling a special case where the ASA logs a continuation line that starts with a space. &lt;/P&gt;

&lt;P&gt;On the ASA, each line is &lt;CODE&gt;\n&lt;/CODE&gt; terminated.  If this is true with IOS, something like this may work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER=([\r\n]+&amp;lt;\d{1-3}&amp;gt;)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(Note I've not tested the above)&lt;/P&gt;

&lt;P&gt;It is quite a pain when Cisco devices disable TCP syslog output entirely.  We deal with this via a Nagios check that looks for an &lt;CODE&gt;ESTABLISHED&lt;/CODE&gt; socket in &lt;CODE&gt;netstat&lt;/CODE&gt; for each firewall we know should be there.  When one isn't there, we alarm on it and work the issue accordingly.  With the &lt;CODE&gt;*nix&lt;/CODE&gt; app, you could probably accomplish this same check without a lot of effort as a search+alert.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 03:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29888#M5163</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-08-09T03:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco TCP Syslogs - Close Events Not Split</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29889#M5164</link>
      <description>&lt;P&gt;The LINE_BREAKER hint put me in the right direction with the first part of the question.&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = ([^\&amp;lt;])\&amp;lt;\d{1,3}\&amp;gt;&lt;/P&gt;

&lt;P&gt;Essentially the selector in parenthesis is anything that's NOT a &amp;lt;, followed by the expression, so it won't break on the first line, but it will on subsequent ones.  I have this working in my development environment and it's working well.&lt;/P&gt;

&lt;P&gt;As far as the TCP restarting goes, I've asked that on the Cisco forum.  I'll update this answer with that information depending on what I find there.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 11:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29889#M5164</guid>
      <dc:creator>iunderwood</dc:creator>
      <dc:date>2012-08-09T11:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco TCP Syslogs - Close Events Not Split</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29890#M5165</link>
      <description>&lt;P&gt;This seems to affect IOS 12.2, at least on all my switching platforms.  All my routers run 12.4 or higher and recover w/o incident.  I now have a case open with TAC.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 15:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Cisco-TCP-Syslogs-Close-Events-Not-Split/m-p/29890#M5165</guid>
      <dc:creator>iunderwood</dc:creator>
      <dc:date>2012-08-10T15:38:08Z</dc:date>
    </item>
  </channel>
</rss>

