<?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 do i exclude some events from being indexed by Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9216#M21</link>
    <description>&lt;P&gt;This example only includes things that contain 'login' and drops everthing else.  Another use case would be to take in everything and make an exception for nosie you want filtered out.  &lt;/P&gt;

&lt;P&gt;The inverse to accept all except anything with the word 'info' would require just one stanza in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = info
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Apr 2010 02:56:36 GMT</pubDate>
    <dc:creator>dskillman</dc:creator>
    <dc:date>2010-04-09T02:56:36Z</dc:date>
    <item>
      <title>How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9213#M18</link>
      <description>&lt;P&gt;i have a data source that is very noisy, and i only want to index specific events from it, not all of them. for example, i only want to index logins and logouts, or login failures. how do i do this?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2010 07:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9213#M18</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2010-01-15T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9214#M19</link>
      <description>&lt;P&gt;This is done by defining a regex to match the necessary event(s) and send everything else to &lt;CODE&gt;nullqueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here is a basic example that will drop everything except events that contain the string &lt;CODE&gt;login&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/foo]
# Transforms must be applied in this order
# to make sure events are dropped on the
# floor prior to making their way to the
# index processor
TRANSFORMS-set = setnull, setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;In transforms.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = login
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jan 2010 08:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9214#M19</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-01-15T08:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9215#M20</link>
      <description>&lt;P&gt;I prefer to use the regex (?=) to match anything. The regex . won't match if the field you're checking against happens to be empty, for example. Though this doesn't happen with the default _raw field, other fields can be empty.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2010 09:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9215#M20</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-01-15T09:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9216#M21</link>
      <description>&lt;P&gt;This example only includes things that contain 'login' and drops everthing else.  Another use case would be to take in everything and make an exception for nosie you want filtered out.  &lt;/P&gt;

&lt;P&gt;The inverse to accept all except anything with the word 'info' would require just one stanza in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = info
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Apr 2010 02:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9216#M21</guid>
      <dc:creator>dskillman</dc:creator>
      <dc:date>2010-04-09T02:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9217#M22</link>
      <description>&lt;P&gt;See this post:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/questions/96/how-do-i-exclude-some-events-from-being-indexed-by-splunk" rel="nofollow"&gt;http://answers.splunk.com/questions/96/how-do-i-exclude-some-events-from-being-indexed-by-splunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;=========&lt;/P&gt;

&lt;P&gt;This is done by defining a regex to match the necessary event(s) and send everything else to nullqueue&lt;/P&gt;

&lt;P&gt;Here is a basic example that will drop everything except events that contain the string login &lt;/P&gt;

&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/foo]
# Transforms must be applied in this order
# to make sure events are dropped on the
# floor prior to making their way to the
# index processor
TRANSFORMS-set= setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = login
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Apr 2010 05:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9217#M22</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-04-30T05:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9218#M23</link>
      <description>&lt;P&gt;I gotta ask.  What is that "5." in the code boxes.  I am thinking it is a typo, but then again when it comes to configuration files, code, syntax and such one never know.  I am trying to exclude some log entries with specific strings and it is not working yet, so then I think "well what is that 5. for"  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 13:15:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9218#M23</guid>
      <dc:creator>geoeldsul</dc:creator>
      <dc:date>2016-05-04T13:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9219#M24</link>
      <description>&lt;P&gt;The 5 is a line count for the pasted data. Not relevant for actual usage in the config files.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 02:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9219#M24</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2016-05-09T02:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9220#M25</link>
      <description>&lt;P&gt;I downvoted this post because recursive.  the link under "see this post" points back to this question.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9220#M25</guid>
      <dc:creator>reswob4</dc:creator>
      <dc:date>2017-08-16T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9221#M26</link>
      <description>&lt;P&gt;I tried this solution but no success.&lt;BR /&gt;
I am trying to filter data from being indexed.I need only the Error events&lt;/P&gt;

&lt;P&gt;In props conf:&lt;BR /&gt;
[source:://C:\Windows\System32\winevt\Logs]&lt;/P&gt;

&lt;H1&gt;Transforms must be applied in this order&lt;/H1&gt;

&lt;H1&gt;to make sure events are dropped on the&lt;/H1&gt;

&lt;H1&gt;floor prior to making their way to the&lt;/H1&gt;

&lt;H1&gt;index processor&lt;/H1&gt;

&lt;P&gt;TRANSFORMS-set = setnull, setparsing&lt;/P&gt;

&lt;P&gt;In transforms.conf: &lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
[setparsing]&lt;BR /&gt;
REGEX = Error&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9221#M26</guid>
      <dc:creator>amit2301</dc:creator>
      <dc:date>2020-09-29T15:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9222#M27</link>
      <description>&lt;P&gt;I've also tried this but it doesn't work.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Could you clarify the location of the Props.conf and Transforms.conf files? There are several in the Splunk file system so it could be that I've modified the wrong ones?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 31 Oct 2018 09:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9222#M27</guid>
      <dc:creator>kalpeshkhetanil</dc:creator>
      <dc:date>2018-10-31T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do i exclude some events from being indexed by Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9223#M28</link>
      <description>&lt;P&gt;Correction: Works perfectly.&lt;/P&gt;

&lt;P&gt;Issue is that I wasn't searching in the right time range. &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 17:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-exclude-some-events-from-being-indexed-by-Splunk/m-p/9223#M28</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2020-01-22T17:17:55Z</dc:date>
    </item>
  </channel>
</rss>

