<?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 Filtering events not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45752#M8593</link>
    <description>&lt;P&gt;I've recently upgraded the forwarder to a universal forwarder on our app server.I'm collecting windows event logs as well as app logs on this server where previously parsing was done on it.&lt;/P&gt;

&lt;P&gt;On the forwarder I've input for windows event logs and have configured to monitor the app log file. These are sent over to the indexer.Here's the configuration:&lt;/P&gt;

&lt;P&gt;After the upgrade,I've moved the configuration to the indexer and it doesn't seem to work now.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;app_log&lt;/STRONG&gt; is the sourcetype for all logs collected from all app servers.I wish to filter the ip off on all app servers.&lt;BR /&gt;
&lt;STRONG&gt;appserverA&lt;/STRONG&gt; is the server that I wish to filter off eventcode 123,456,789,while the rest remain. &lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[app_log]  
TRANSFORMS-null = setnull 

 [host::appserverA]
TRANSFORMS-null = setnullappserverA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = (192\.168\.1\.10|192\.168\.1\.18)
DEST_KEY = queue
FORMAT = nullQueue

[setnullappserverA]
REGEX = EventCode=(123|456|789)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An example of the event:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;192.168.1.10 - - [09/Jan/2012:17:46:54] "message"   
192.168.1.18 - - [09/Jan/2012:17:46:55] "message"   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filtering for the eventcode is successful,but not for the IP.Can anyone advise if I've missed something?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2012 09:59:33 GMT</pubDate>
    <dc:creator>remy06</dc:creator>
    <dc:date>2012-01-09T09:59:33Z</dc:date>
    <item>
      <title>Filtering events not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45752#M8593</link>
      <description>&lt;P&gt;I've recently upgraded the forwarder to a universal forwarder on our app server.I'm collecting windows event logs as well as app logs on this server where previously parsing was done on it.&lt;/P&gt;

&lt;P&gt;On the forwarder I've input for windows event logs and have configured to monitor the app log file. These are sent over to the indexer.Here's the configuration:&lt;/P&gt;

&lt;P&gt;After the upgrade,I've moved the configuration to the indexer and it doesn't seem to work now.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;app_log&lt;/STRONG&gt; is the sourcetype for all logs collected from all app servers.I wish to filter the ip off on all app servers.&lt;BR /&gt;
&lt;STRONG&gt;appserverA&lt;/STRONG&gt; is the server that I wish to filter off eventcode 123,456,789,while the rest remain. &lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[app_log]  
TRANSFORMS-null = setnull 

 [host::appserverA]
TRANSFORMS-null = setnullappserverA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = (192\.168\.1\.10|192\.168\.1\.18)
DEST_KEY = queue
FORMAT = nullQueue

[setnullappserverA]
REGEX = EventCode=(123|456|789)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An example of the event:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;192.168.1.10 - - [09/Jan/2012:17:46:54] "message"   
192.168.1.18 - - [09/Jan/2012:17:46:55] "message"   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filtering for the eventcode is successful,but not for the IP.Can anyone advise if I've missed something?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 09:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45752#M8593</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2012-01-09T09:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45753#M8594</link>
      <description>&lt;P&gt;Hi remy06&lt;/P&gt;

&lt;P&gt;I think your props.conf stanza &lt;CODE&gt;[app_log]&lt;/CODE&gt; does not match your sourcetype; had this kind of problem before with some WMI sourcetypes.&lt;/P&gt;

&lt;P&gt;Also try to simplify your regex for the IP to this one &lt;CODE&gt;(\d+\.){3}(10|18)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45753#M8594</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-01-09T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45754#M8595</link>
      <description>&lt;P&gt;Hi MuS,&lt;BR /&gt;
I've checked that [app_log] is the sourcetype.The sourcetype I've defined for application logs is app_log.Is there anything else I've missed?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45754#M8595</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2020-09-28T10:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45755#M8596</link>
      <description>&lt;P&gt;What is the output of btool?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd btool --debug props list app_log&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2012 03:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45755#M8596</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2012-01-11T03:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45756#M8597</link>
      <description>&lt;P&gt;Here's the output&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search     [app_log]
system     ANNOTATE_PUNCT = True
system     BREAK_ONLY_BEFORE =
system     BREAK_ONLY_BEFORE_DATE = True
system     CHARSET = UTF-8
system     DATETIME_CONFIG = /etc/datetime.xml
search     EXTRACT-Time = (?i)^[^"]*"(?P&amp;lt;Time&amp;gt;[^ ]*)(?= )
system     HEADER_MODE =
system     LEARN_SOURCETYPE = true
system     LINE_BREAKER_LOOKBEHIND = 100
system     MAX_DAYS_AGO = 2000
system     MAX_DAYS_HENCE = 2
system     MAX_DIFF_SECS_AGO = 3600
system     MAX_DIFF_SECS_HENCE = 604800
system     MAX_EVENTS = 256
system     MAX_TIMESTAMP_LOOKAHEAD = 128
system     MUST_BREAK_AFTER =
system     MUST_NOT_BREAK_AFTER =
system     MUST_NOT_BREAK_BEFORE =
system     SEGMENTATION = indexing
system     SEGMENTATION-all = full
system     SEGMENTATION-inner = inner
system     SEGMENTATION-outer = outer
system     SEGMENTATION-raw = none
system     SEGMENTATION-standard = standard
system     SHOULD_LINEMERGE = True
system     TRANSFORMS =
system     TRANSFORMS-null = setnull
system     TRUNCATE = 10000
system     maxDist = 100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jan 2012 07:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45756#M8597</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2012-01-11T07:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45757#M8598</link>
      <description>&lt;P&gt;any status?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-not-working/m-p/45757#M8598</guid>
      <dc:creator>remy06</dc:creator>
      <dc:date>2012-01-31T10:03:44Z</dc:date>
    </item>
  </channel>
</rss>

