<?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: How to filter out messages to nullQueue that contain stringA, but keep messages that contain both stringB and stringA? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-messages-to-nullQueue-that-contain-stringA-but/m-p/201338#M39849</link>
    <description>&lt;P&gt;I do not know the format of your logs but let us suppose it is something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timestamp blah blah SYN Timeout blah blah Teardown blah blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you can use a &lt;CODE&gt;negative lookahead&lt;/CODE&gt; like this in transforms.conf to throw away ones with SYN Timeout but not Teardown:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = SYN Timeout(?!.*Teardown)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Jun 2016 06:02:24 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-06-09T06:02:24Z</dc:date>
    <item>
      <title>How to filter out messages to nullQueue that contain stringA, but keep messages that contain both stringB and stringA?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-messages-to-nullQueue-that-contain-stringA-but/m-p/201337#M39848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We are filtering messages from our Cisco ASA logs that contain Teardown and Buildup, but we recently wanted to include messages that include SYN Timeout.&lt;/P&gt;

&lt;P&gt;The problem with the messages that contain the SYN Timeout also contain Teardown, which are getting filtered out by our transforms.conf file.&lt;/P&gt;

&lt;P&gt;My question: Is there a way for us to filter out the messages that contain Teardown, but keep the messages that keep SYN Timeout even though they contain the Teardown string?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-messages-to-nullQueue-that-contain-stringA-but/m-p/201337#M39848</guid>
      <dc:creator>Volto</dc:creator>
      <dc:date>2016-06-08T21:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out messages to nullQueue that contain stringA, but keep messages that contain both stringB and stringA?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-messages-to-nullQueue-that-contain-stringA-but/m-p/201338#M39849</link>
      <description>&lt;P&gt;I do not know the format of your logs but let us suppose it is something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timestamp blah blah SYN Timeout blah blah Teardown blah blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you can use a &lt;CODE&gt;negative lookahead&lt;/CODE&gt; like this in transforms.conf to throw away ones with SYN Timeout but not Teardown:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = SYN Timeout(?!.*Teardown)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2016 06:02:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-messages-to-nullQueue-that-contain-stringA-but/m-p/201338#M39849</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-09T06:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out messages to nullQueue that contain stringA, but keep messages that contain both stringB and stringA?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-messages-to-nullQueue-that-contain-stringA-but/m-p/201339#M39850</link>
      <description>&lt;P&gt;The log format looks like this;&lt;/P&gt;

&lt;P&gt;blah blah blah Teardown blah blah blah SYN Timeout&lt;/P&gt;

&lt;P&gt;I ended up using a regex like this for matching those that contained Teardown, which we wanted to throw away, but keep that had SYN Timeout, which we wanted to keep.&lt;/P&gt;

&lt;P&gt;\s+(Teardown(?!.*SYN\sTimeout))\s+&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 12:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-messages-to-nullQueue-that-contain-stringA-but/m-p/201339#M39850</guid>
      <dc:creator>Volto</dc:creator>
      <dc:date>2016-06-09T12:56:21Z</dc:date>
    </item>
  </channel>
</rss>

