<?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 during index-time not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-during-index-time-not-working/m-p/63705#M12813</link>
    <description>&lt;P&gt;I have the following stanza in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[medusa_media_access-drop-events]
REGEX = ^\S+\s++\S+\s++\[[^\]]*\]\s++\S+\s++"[^"]*"\s++POST\s++"/soap"\s++""\s++200\s++
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the following in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[medusa_media_access]
REPORT-extractions = medusa_media_access-extractions,medusa_media_access-uri-fields,medusa_media_access-query-fields,medusa_media_access-legacy_medialookup-primary_key
TRANSFORMS-drop = medusa_media_access-drop-events
FIELDALIAS-legacy = accountId AS medusa_account_alias
KV_MODE=none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The setting for index-time filtering doesn't seem to filter any events, even those the pcregextest matches. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1.1.1.1 - [20/Mar/2011:19:18:06 -0700] 15625 "my.site.com" POST "/soap" "" 200 590 "medusa" "-" "Apache CXF 2.2.9" "2.2.2.2"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The other settings for the sourcetype (the search-time extractions, for example), do apply.
I have this configured on a single indexer + search head, with the log data itself being sent from two remote forwarders. &lt;/P&gt;

&lt;P&gt;Any idea on what I'm missing?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2011 09:36:22 GMT</pubDate>
    <dc:creator>spock_yh</dc:creator>
    <dc:date>2011-03-21T09:36:22Z</dc:date>
    <item>
      <title>Filtering during index-time not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-during-index-time-not-working/m-p/63705#M12813</link>
      <description>&lt;P&gt;I have the following stanza in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[medusa_media_access-drop-events]
REGEX = ^\S+\s++\S+\s++\[[^\]]*\]\s++\S+\s++"[^"]*"\s++POST\s++"/soap"\s++""\s++200\s++
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the following in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[medusa_media_access]
REPORT-extractions = medusa_media_access-extractions,medusa_media_access-uri-fields,medusa_media_access-query-fields,medusa_media_access-legacy_medialookup-primary_key
TRANSFORMS-drop = medusa_media_access-drop-events
FIELDALIAS-legacy = accountId AS medusa_account_alias
KV_MODE=none
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The setting for index-time filtering doesn't seem to filter any events, even those the pcregextest matches. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1.1.1.1 - [20/Mar/2011:19:18:06 -0700] 15625 "my.site.com" POST "/soap" "" 200 590 "medusa" "-" "Apache CXF 2.2.9" "2.2.2.2"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The other settings for the sourcetype (the search-time extractions, for example), do apply.
I have this configured on a single indexer + search head, with the log data itself being sent from two remote forwarders. &lt;/P&gt;

&lt;P&gt;Any idea on what I'm missing?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 09:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-during-index-time-not-working/m-p/63705#M12813</guid>
      <dc:creator>spock_yh</dc:creator>
      <dc:date>2011-03-21T09:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering during index-time not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-during-index-time-not-working/m-p/63706#M12814</link>
      <description>&lt;P&gt;Your props.conf / transforms.conf setup looks fine to me. However I just checked your regex and it seems you have lots of superfluous '+' characters in it - are those in the original regex as well or was it some kind of typo when you entered text here on the site?&lt;/P&gt;

&lt;P&gt;Also, are the remote forwarders light or heavy forwarders? If they're heavy forwarders you'll want to perform this filtering on the forwarders themselves instead.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 12:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-during-index-time-not-working/m-p/63706#M12814</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-03-21T12:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering during index-time not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-during-index-time-not-working/m-p/63707#M12815</link>
      <description>&lt;P&gt;Hi Ayn&lt;/P&gt;

&lt;P&gt;The forwarders are universal forwarders (4.2). &lt;/P&gt;

&lt;P&gt;Regarding the superfluous '+' characters, the regex was basically copied from the default regex for "access-extractions" in the default props.conf. The double '+' means that the regex shouldn't backtrack after matching the spaces.&lt;/P&gt;

&lt;P&gt;Anyway, I find it hard to believe that the problem is the regex because pcregextest does claim it is a match.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2011 01:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-during-index-time-not-working/m-p/63707#M12815</guid>
      <dc:creator>spock_yh</dc:creator>
      <dc:date>2011-03-25T01:55:15Z</dc:date>
    </item>
  </channel>
</rss>

