<?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 exclude lines from a log --IndexQueue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464108#M130813</link>
    <description>&lt;P&gt;'in the specific order ' has been the key for resolution. Thanks you very much!!!!!!!!&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 09:10:06 GMT</pubDate>
    <dc:creator>IreneAsdfgk</dc:creator>
    <dc:date>2019-12-11T09:10:06Z</dc:date>
    <item>
      <title>How to exclude lines from a log --IndexQueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464106#M130811</link>
      <description>&lt;P&gt;We are trying to index only events that contain a certain structure set by a regular expression: \ S + \ s \ S + \ s \ ((\ S + | \ w + | ./ \ w +) ) : \ s (DATE | END | Running). &lt;BR /&gt;
However, when we assign the indexQueue property in transforms.conf, it doesn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[takedata]
REGEX = \ S + \ s \ S + \ s \ ((\ S + | \ w + | ./ \ w +) \) \: \ s (DATE | END | Running)
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If we do it with the nullQueue, we exclude the rows that correspond to that expression.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[excludedata]
REGEX = \ S + \ s \ S + \ s \ ((\ S + | \ w + | ./ \ w +) \) \: \ s (DATE | END | Running)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can any help us?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 16:29:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464106#M130811</guid>
      <dc:creator>IreneAsdfgk</dc:creator>
      <dc:date>2019-12-10T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude lines from a log --IndexQueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464107#M130812</link>
      <description>&lt;P&gt;You need to do both and in the specific order as explained in the link below. What this does is "send everything to the nullQueue, except the events that match this regex". Like this:&lt;/P&gt;

&lt;P&gt;[your_sourcetype]&lt;BR /&gt;
TRANSFORMS-set= excludedata,takedata&lt;/P&gt;

&lt;P&gt;[excludedata]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[takedata]&lt;BR /&gt;
REGEX = \ S + \ s \ S + \ s \ ((\ S + | \ w + | ./ \ w +) ) : \ s (DATE | END | Running)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 21:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464107#M130812</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-10T21:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude lines from a log --IndexQueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464108#M130813</link>
      <description>&lt;P&gt;'in the specific order ' has been the key for resolution. Thanks you very much!!!!!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 09:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464108#M130813</guid>
      <dc:creator>IreneAsdfgk</dc:creator>
      <dc:date>2019-12-11T09:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude lines from a log --IndexQueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464109#M130814</link>
      <description>&lt;P&gt;Excellent! Glad to help. If you have a chance please mark the answer as accepted.&lt;BR /&gt;
Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 14:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464109#M130814</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-11T14:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude lines from a log --IndexQueue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464110#M130815</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/109006"&gt;@oscar84x&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93910"&gt;@IreneAsdfgk&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;Can you let me know if you tweaked outputs.conf too ?&lt;BR /&gt;
I am facing same issue - I can't filter in events to include events but exclude filter works. My config is running on standalone SH . &lt;BR /&gt;
I added in outputs.conf too - how can I make it work ?&lt;/P&gt;

&lt;P&gt;[tcpout:setparsing]&lt;BR /&gt;
server=localhost:8000&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
[OktaIM2:log]&lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX=gmail.com&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;BR /&gt;
[setparsing]&lt;BR /&gt;
REGEX=yahoo.com&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=indexQueue&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-lines-from-a-log-IndexQueue/m-p/464110#M130815</guid>
      <dc:creator>rashi83</dc:creator>
      <dc:date>2020-09-30T05:00:21Z</dc:date>
    </item>
  </channel>
</rss>

