<?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: splunk discard specific events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195746#M187331</link>
    <description>&lt;P&gt;Doesnot work either. It still shows up newly indexed data that have info in eventtype&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jan 2014 23:44:25 GMT</pubDate>
    <dc:creator>pdash</dc:creator>
    <dc:date>2014-01-05T23:44:25Z</dc:date>
    <item>
      <title>splunk discard specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195742#M187327</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;{[-] EventInfo : {[+]}, EventType : "INFO", Properties : {[+]}, TimeStamp : "2014-01-03T19:31:30.3319998Z" }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do i discard events that have EventType = INFO?&lt;/P&gt;

&lt;P&gt;Currently my transforms and props are: &lt;/P&gt;

&lt;P&gt;(transforms)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[treessvcignore] 
REGEX = \"EventType\"\:\"INFO\" 
DEST_KEY = queue 
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(props)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::TREESSVC*] 
TRANSFORMS-null = treessvcignore
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This data is in json format&lt;/P&gt;

&lt;P&gt;The raw data looks like this&lt;BR /&gt;
The raw event is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"EventType":"INFO","TimeStamp":"2014-01-03T06:59:59.9645694Z","Properties":{"StackId":"PER_RNK","applicationClass":"CollatorApplication","name":"PersonRank","type":"Collator","serverClassType":"Live","serverClassApplication":"Multi","ComponentId":"PersonRank","ClientId":"Unknown","ClassName":"CollatorHandlers","MethodName":"Query","ClientPath":"Unknown","RequestPath":"a61a2538-9ef6-4c2c-8579-0d6e073c4159","Metric":...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Jan 2014 00:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195742#M187327</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2014-01-04T00:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: splunk discard specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195743#M187328</link>
      <description>&lt;P&gt;I tested your configuation on my test system with your example event, and it seems to have filtered the event just fine.  So I believe your configuration is (fundamentally) correct.  Some questions:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Where is this configuration defined?  On a forwarder, or the indexer?  With Light or Universal forwarders, this configuration needs to be installed at the indexer.  If there is a heavy forwarder in your environment, it needs to be at the first heavy forwarder that will touch the event.&lt;/LI&gt;
&lt;LI&gt;Have you restarted Splunk since applying this change?&lt;/LI&gt;
&lt;LI&gt;Are these configs in an app or in the &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt; directory?&lt;/LI&gt;
&lt;LI&gt;Have you checked with the &lt;CODE&gt;btool&lt;/CODE&gt; command to make sure your config is not being overridden by some other app?  ( &lt;A href="http://blogs.splunk.com/2012/10/02/tips-and-tricks-for-the-new-guy/"&gt;http://blogs.splunk.com/2012/10/02/tips-and-tricks-for-the-new-guy/&lt;/A&gt; )&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sat, 04 Jan 2014 16:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195743#M187328</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2014-01-04T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: splunk discard specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195744#M187329</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/users/403/dwaddle"&gt;dwaddle&lt;/A&gt; 's answer is great, but I think I see some typos in your REGEX, based on the sample event. I would do it this way&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = "EventType"\s*:\s*"INFO" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;ah - I didn't see the quotes at first in the raw data.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2014 18:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195744#M187329</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-01-04T18:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: splunk discard specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195745#M187330</link>
      <description>&lt;P&gt;Thanks. So its on indexer not on forwarder. And within splunkhome/etc/system/local dir. Also i restarted to make the changes effective&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2014 18:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195745#M187330</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2014-01-04T18:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: splunk discard specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195746#M187331</link>
      <description>&lt;P&gt;Doesnot work either. It still shows up newly indexed data that have info in eventtype&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2014 23:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-discard-specific-events/m-p/195746#M187331</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2014-01-05T23:44:25Z</dc:date>
    </item>
  </channel>
</rss>

