<?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: Filtering Events into nullqueue in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Filtering-Events-into-nullqueue/m-p/306468#M4043</link>
    <description>&lt;P&gt;Your regex looks really off - copy&amp;amp;paste error? If not, all it does is look for the capital F followed by some characters.&lt;BR /&gt;
This should be better: &lt;CODE&gt;\s\d+\.\d+\.\d+\.\d+\s+FAILED&lt;/CODE&gt;&lt;BR /&gt;
Note, this doesn't actually match only IPv4 addresses, but it should be correct enough. Additionally, it doesn't check if it's the first IP that's being followed by &lt;CODE&gt;FAILED&lt;/CODE&gt; - address that if you expect events that contain FAILED after a later IP that you want to keep, for example by only looking N words deep into the event from the beginning, as these look like syslog-ish headers.&lt;/P&gt;

&lt;P&gt;There is an app for Bluecoat ProxySG on Splunkbase, that might help you a lot with field extraction and stuff.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Feb 2018 00:46:16 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2018-02-25T00:46:16Z</dc:date>
    <item>
      <title>Filtering Events into nullqueue</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtering-Events-into-nullqueue/m-p/306467#M4042</link>
      <description>&lt;P&gt;Real novice here.  I am ingesting a sourcetype into Splunk, and want to filter out any events with the word "FAILED" right after the first IP address.`&lt;/P&gt;

&lt;P&gt;Below is my  props in etc\apps\search\local&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sslbcoat1]
DATETIME_CONFIG = 
NO_BINARY_CHECK = true
category = Custom
pulldown_type = true
TRANSFORMS-null = setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;`&lt;BR /&gt;
and then here's my transforms where I THOUGHT I was carving out failures and sending them to null:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[geo_us_states]
external_type = geo
filename = geo_us_states.kmz

[geo_countries]
external_type = geo
filename = geo_countries.kmz

[geo_attr_us_states]
filename = geo_attr_us_states.csv

[geo_attr_countries]
filename = geo_attr_countries.csv

[setnull]
REGEX = ^.+(F...).+$
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The regex might be wrong, but somehow I don't think that's the problem.  Thanks and any insight would be appreciated.&lt;/P&gt;

&lt;P&gt;Sample event:&lt;/P&gt;

&lt;P&gt;014-04-17 13:50:22 2 10.3.31.70 FAILED - - - - 199.83.168.160 - - - none - - - - none - - 163.252.254.201 SG-SSL-Proxy-Service - 58642&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtering-Events-into-nullqueue/m-p/306467#M4042</guid>
      <dc:creator>JPrictoe</dc:creator>
      <dc:date>2018-02-23T17:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Events into nullqueue</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtering-Events-into-nullqueue/m-p/306468#M4043</link>
      <description>&lt;P&gt;Your regex looks really off - copy&amp;amp;paste error? If not, all it does is look for the capital F followed by some characters.&lt;BR /&gt;
This should be better: &lt;CODE&gt;\s\d+\.\d+\.\d+\.\d+\s+FAILED&lt;/CODE&gt;&lt;BR /&gt;
Note, this doesn't actually match only IPv4 addresses, but it should be correct enough. Additionally, it doesn't check if it's the first IP that's being followed by &lt;CODE&gt;FAILED&lt;/CODE&gt; - address that if you expect events that contain FAILED after a later IP that you want to keep, for example by only looking N words deep into the event from the beginning, as these look like syslog-ish headers.&lt;/P&gt;

&lt;P&gt;There is an app for Bluecoat ProxySG on Splunkbase, that might help you a lot with field extraction and stuff.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 00:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtering-Events-into-nullqueue/m-p/306468#M4043</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-02-25T00:46:16Z</dc:date>
    </item>
  </channel>
</rss>

