<?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 filter data at indexer from forwarder-- not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68080#M13775</link>
    <description>&lt;P&gt;I have set up a few heavy forwarders.   I did this to filter data, and learn how.
Some of these are on a WAN and will remain heavy.  However, on my LAN, I'd rather deploy light.&lt;/P&gt;

&lt;P&gt;So, I've attempted to move my working configuration to my indexer.  However, my indexer is not filtering the data.  As a test, I'm just trying to throw everything away.&lt;/P&gt;

&lt;P&gt;Currently, I am forwarding only security event log data.&lt;/P&gt;

&lt;P&gt;So, on my indexer, I've modified local/props.conf to contain this: (which is a copy from the default)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WinEventLog:Security]
SHOULD_LINEMERGE = false
MAX_TIMESTAMP_LOOKAHEAD=30
LINE_BREAKER = ([\r\n](?=\d{2}/\d{2}/\d{4} \d{2}:\d{2}:\d{2} [aApPmM]{2}))
REPORT-MESSAGE = wel-message, wel-eq-kv, wel-col-kv
KV_MODE=none
TRANSFORMS-FIELDS = strip-winevt-linebreaker
SEDCMD-translate=s/Account EDITED/Account BOOYA/
TRANSFORMS-set = redirect
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My local/transforms.conf looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[redirect]
REGEX=.
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I've found is that the SEDCMD is not being executed (It works on the heavies) and the redirect transform is not discarding everything with a source of &lt;CODE&gt;[source::WinEventLog:Security]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This is all correct, isn't it?&lt;/P&gt;

&lt;P&gt;I have tried using just &lt;CODE&gt;[WinEventLog:Security]&lt;/CODE&gt; as the source, along with attempting to use &lt;CODE&gt;[host::MACHINE1]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But nothing seems to work.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Mar 2011 01:57:34 GMT</pubDate>
    <dc:creator>jgauthier</dc:creator>
    <dc:date>2011-03-26T01:57:34Z</dc:date>
    <item>
      <title>filter data at indexer from forwarder-- not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68080#M13775</link>
      <description>&lt;P&gt;I have set up a few heavy forwarders.   I did this to filter data, and learn how.
Some of these are on a WAN and will remain heavy.  However, on my LAN, I'd rather deploy light.&lt;/P&gt;

&lt;P&gt;So, I've attempted to move my working configuration to my indexer.  However, my indexer is not filtering the data.  As a test, I'm just trying to throw everything away.&lt;/P&gt;

&lt;P&gt;Currently, I am forwarding only security event log data.&lt;/P&gt;

&lt;P&gt;So, on my indexer, I've modified local/props.conf to contain this: (which is a copy from the default)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WinEventLog:Security]
SHOULD_LINEMERGE = false
MAX_TIMESTAMP_LOOKAHEAD=30
LINE_BREAKER = ([\r\n](?=\d{2}/\d{2}/\d{4} \d{2}:\d{2}:\d{2} [aApPmM]{2}))
REPORT-MESSAGE = wel-message, wel-eq-kv, wel-col-kv
KV_MODE=none
TRANSFORMS-FIELDS = strip-winevt-linebreaker
SEDCMD-translate=s/Account EDITED/Account BOOYA/
TRANSFORMS-set = redirect
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My local/transforms.conf looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[redirect]
REGEX=.
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I've found is that the SEDCMD is not being executed (It works on the heavies) and the redirect transform is not discarding everything with a source of &lt;CODE&gt;[source::WinEventLog:Security]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This is all correct, isn't it?&lt;/P&gt;

&lt;P&gt;I have tried using just &lt;CODE&gt;[WinEventLog:Security]&lt;/CODE&gt; as the source, along with attempting to use &lt;CODE&gt;[host::MACHINE1]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But nothing seems to work.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2011 01:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68080#M13775</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-26T01:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: filter data at indexer from forwarder-- not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68081#M13776</link>
      <description>&lt;P&gt;That isn't going to work, because once the data arrives on the indexer, it is going to be cooked. Once the indexer sees cooked data, it won't do anything else with it. The changes need to happen where the data is parsed, which in the situation you are describing, is on the full Forwarder. If you were using an LWF, this would work on the indexer. &lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2011 02:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68081#M13776</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-03-26T02:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: filter data at indexer from forwarder-- not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68082#M13777</link>
      <description>&lt;P&gt;Okay. So I can definitely do this with a LWF, but not a heavy?&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2011 02:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68082#M13777</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-26T02:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: filter data at indexer from forwarder-- not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68083#M13778</link>
      <description>&lt;P&gt;That is correct. The key is to remember to do your props/transforms where parsing occurs. After parsing occurs, the data is cooked and anything further you've specified just won't occur.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2011 02:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68083#M13778</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-03-26T02:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: filter data at indexer from forwarder-- not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68084#M13779</link>
      <description>&lt;P&gt;I am still striking out.   I set up a light forwarder to test sending squid logs.
I set the LWF config to be simple:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor::///var/log/squid/access.log]
followTail=1
host=Squid
sourcetype=squid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the indexer:
props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[squid]
TRANSFORMS-set=setnull,keep
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[keep]
REGEX=(?=)
DEST_KEY=queue
FORMAT=indexQueue

[setnull]
REGEX=TCP_DENIED
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;items with TCP_DENIED are still showing up.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2011 03:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68084#M13779</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-26T03:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: filter data at indexer from forwarder-- not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68085#M13780</link>
      <description>&lt;P&gt;I really don't understand what I did differently. I just removed the [keep] stanza...&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2011 07:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68085#M13780</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-26T07:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: filter data at indexer from forwarder-- not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68086#M13781</link>
      <description>&lt;P&gt;(but it works now)&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2011 07:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-at-indexer-from-forwarder-not-working/m-p/68086#M13781</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-26T07:11:13Z</dc:date>
    </item>
  </channel>
</rss>

