<?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: Filter events for specific keywords in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392509#M70135</link>
    <description>&lt;P&gt;Hi lakshman239&lt;/P&gt;

&lt;P&gt;i tried your options but  unfortunately it is not working.&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 14:17:00 GMT</pubDate>
    <dc:creator>keishamtcs</dc:creator>
    <dc:date>2019-02-21T14:17:00Z</dc:date>
    <item>
      <title>Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392500#M70126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have some set of events that has keywords like "inbound message" and "outbound message". the events looks something like this .&lt;/P&gt;

&lt;P&gt;2010-02-20 14:12:45.642 | INFO  | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | Inbound Message. I want such event only to be index.&lt;/P&gt;

&lt;P&gt;on the indexer side, i have created as such but it is not working. how to resolve this ?&lt;/P&gt;

&lt;P&gt;In transforms :&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
REGEX = Inbound&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;props&lt;/P&gt;

&lt;P&gt;[testsource]&lt;BR /&gt;
TRANSFORMS-set= test&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392500#M70126</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-02-20T14:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392501#M70127</link>
      <description>&lt;P&gt;Hey. &lt;/P&gt;

&lt;P&gt;You better put everything else into the nullQueue. I tested this with the following testdata:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-02-20 14:12:45.642 | INFO | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | Inbound Message.
2019-02-20 14:12:45.643 | INFO | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | Outbound Message.
2019-02-20 14:12:45.647 | INFO | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | gugus Message.
2019-02-20 14:12:45.644 | INFO | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | Inbound Message.
2019-02-20 14:12:45.645 | INFO | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | Outbound Message.
2019-02-20 14:12:45.648 | INFO | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | gugus Message.
2019-02-20 14:12:45.646 | INFO | qtp413909515-1424 - /aaaaaaaaaaaaaaa | uuid:aaaaaaaa | vice.InServiceSOAP.InServicePort | 74 - org.apache.cxf.cxf-core - 3.0.4.redhat-621169 | Inbound Message.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
REGEX = ^((?!Inbound Message|Outbound Message).)*$
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[testsource]
SHOULD_LINEMERGE = false
TRUNCATE = 100000
MAX_TIMESTAMP_LOOKAHEAD = 30
NO_BINARY_CHECK = true
TIME_FORMAT=%Y-%m-%d %T.%3N
TIME_PREFIX=^
LINE_BREAKER=([\r\n]+)\d{4}-\d{2}-\d{2}
TRANSFORMS-set = test
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392501#M70127</guid>
      <dc:creator>markusspitzli</dc:creator>
      <dc:date>2019-02-20T14:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392502#M70128</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The problem is those events which i don't need does not have any proper syntax or keyword. &lt;BR /&gt;
I will need to filter only with events that has Inbound Message or Outbound Message.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392502#M70128</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-02-20T15:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392503#M70129</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Sorry I put the wrong regex. You have to put everything in the nullQueue exept of the Inbound or Outbound Message like this regex:&lt;BR /&gt;
&lt;CODE&gt;^((?!Inbound Message|Outbound Message).)*$&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392503#M70129</guid>
      <dc:creator>markusspitzli</dc:creator>
      <dc:date>2019-02-20T15:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392504#M70130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;It is not working. It is still indexing all the data.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392504#M70130</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-02-20T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392505#M70131</link>
      <description>&lt;P&gt;could you please add some example logs? thx&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392505#M70131</guid>
      <dc:creator>markusspitzli</dc:creator>
      <dc:date>2019-02-20T16:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392506#M70132</link>
      <description>&lt;P&gt;Maybe - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (Inbound Message|Outbound Message)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392506#M70132</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-02-20T16:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392507#M70133</link>
      <description>&lt;P&gt;I just tried it with a few sample logs. See the updated config from my original comment. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 21:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392507#M70133</guid>
      <dc:creator>markusspitzli</dc:creator>
      <dc:date>2019-02-20T21:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392508#M70134</link>
      <description>&lt;P&gt;Pls change the filters as below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In transforms :

# send everything to null queue except the ones we want
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = (Inbound|inbound|Outbound|outbound)
DEST_KEY = queue
FORMAT = indexQueue

props

[testsource]
TRANSFORMS-set= setnull, setparsing
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2019 11:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392508#M70134</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-21T11:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392509#M70135</link>
      <description>&lt;P&gt;Hi lakshman239&lt;/P&gt;

&lt;P&gt;i tried your options but  unfortunately it is not working.&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 14:17:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392509#M70135</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-02-21T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392510#M70136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Tried but it is not working.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 14:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392510#M70136</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-02-21T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392511#M70137</link>
      <description>&lt;P&gt;I assume you restarted splunk after changing props/transforms and looking for any new events in the index. right?  Are you seeing any errors or its not filtering any events?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 14:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392511#M70137</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-21T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392512#M70138</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;yes i did. I didn't get any error. It simply does not filter the data at all.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 15:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392512#M70138</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-02-21T15:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392513#M70139</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;When i used something like this as mentioned above it works a bit but i guess the LINE_BREAKER=([\r\n]+)\d{4}-\d{2}-\d{2} needs to be modified a bit to filter only the exact event.&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
 REGEX = ^((?!Inbound Message|Outbound Message).)*$&lt;BR /&gt;
 DEST_KEY=queue&lt;BR /&gt;
 FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;[testsource]&lt;BR /&gt;
 SHOULD_LINEMERGE = false&lt;BR /&gt;
 TRUNCATE = 100000&lt;BR /&gt;
 MAX_TIMESTAMP_LOOKAHEAD = 30&lt;BR /&gt;
 NO_BINARY_CHECK = true&lt;BR /&gt;
 TIME_FORMAT=%Y-%m-%d %T.%3N&lt;BR /&gt;
 TIME_PREFIX=^&lt;BR /&gt;
 LINE_BREAKER=([\r\n]+)\d{4}-\d{2}-\d{2}&lt;BR /&gt;
 TRANSFORMS-set = test&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392513#M70139</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2020-09-29T23:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392514#M70140</link>
      <description>&lt;P&gt;Pls test with this and let me know. [ you may need restarts]&lt;BR /&gt;
updated line breaker to include complete string.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[testsource]
SHOULD_LINEMERGE = false
TRUNCATE = 999999
MAX_TIMESTAMP_LOOKAHEAD = 30
NO_BINARY_CHECK = true
TIME_FORMAT=%Y-%m-%d %T.%3N
TIME_PREFIX=^
LINE_BREAKER=([\r\n]+)\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{3}
TRANSFORMS-set = test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Commontimeformatvariables"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 09:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392514#M70140</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-22T09:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events for specific keywords</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392515#M70141</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Yes..i will try with this.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 11:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-for-specific-keywords/m-p/392515#M70141</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-02-26T11:55:46Z</dc:date>
    </item>
  </channel>
</rss>

