<?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 iis logs before indexing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114240#M23881</link>
    <description>&lt;P&gt;Actually, I'm trying to perform the filtering prior to indexing.  I'd like to reduce the amount of license usage.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2014 21:07:13 GMT</pubDate>
    <dc:creator>trodenbaugh</dc:creator>
    <dc:date>2014-01-15T21:07:13Z</dc:date>
    <item>
      <title>Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114238#M23879</link>
      <description>&lt;P&gt;I've upgraded to Splunk 6.01 and noticed the improved handling of the windows events prior to indexing and wondered if there were any improvements to the IIS logs.  To minimize indexing licenses, I'd like to only index IIS logs with a 404 or 500 errors and would like to not depend on a REX filter to pull out the sc_status field value at index time. &lt;/P&gt;

&lt;P&gt;Does 6.01 handle the IIS filtering any differently?  If not, I guess I can use a REX to pull the error events.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 00:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114238#M23879</guid>
      <dc:creator>trodenbaugh</dc:creator>
      <dc:date>2014-01-15T00:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114239#M23880</link>
      <description>&lt;P&gt;You don't need rex to pull any iis field if the search time extractions are configured correctly.&lt;/P&gt;

&lt;P&gt;First, group your iis logs by content - different web sites can have different log content, i.e. different number or type of fields in the header.&lt;/P&gt;

&lt;P&gt;Two, specify a unique sourcetype in inputs.conf on the forwarder that is collecting the logs.  Use the same sourcetype for each input that has the same iis header.&lt;/P&gt;

&lt;P&gt;Three, create a props.conf and a transforms.conf stanza on the indexer in &lt;CODE&gt;splunk/etc/system/local&lt;/CODE&gt; that sets delims and fields for that sourcetype.  &lt;/P&gt;

&lt;P&gt;Since this is a search time extraction it will work on all indexed iis logs so long as the header has not changed, and if you make a mistake it can be corrected without changing the indexed data.  &lt;/P&gt;

&lt;P&gt;There are few things better than iis logs that are extracted properly.  If you need the details, let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 00:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114239#M23880</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-01-15T00:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114240#M23881</link>
      <description>&lt;P&gt;Actually, I'm trying to perform the filtering prior to indexing.  I'd like to reduce the amount of license usage.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 21:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114240#M23881</guid>
      <dc:creator>trodenbaugh</dc:creator>
      <dc:date>2014-01-15T21:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114241#M23882</link>
      <description>&lt;P&gt;Well then, to answer your question about iis log filtering changes in Splunk 6 - no, there were no changes similiar to those for Windows events.&lt;BR /&gt;
Yes, you can filter iis logs prior to indexing.&lt;BR /&gt;
Configure the input on the forwarder, and configure the props and transforms.conf on the indexer in &lt;CODE&gt;splunk/etc/system/local&lt;/CODE&gt;&lt;BR /&gt;
The format for the props and transforms will be the same as regular Windows events, the difference will be the regex you use to identify the 404 and 500 errors.&lt;BR /&gt;
See this post:&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/29218/filtering-windows-event-logs"&gt;http://answers.splunk.com/answers/29218/filtering-windows-event-logs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114241#M23882</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-01-16T14:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114242#M23883</link>
      <description>&lt;P&gt;New in Splunk 6.x a Universal Forwarder can perform nullqueue filtering for inputs leveraging the INDEXED_EXTRACTIONS setting, which $SPLUNK_HOME/etc/system/default/props.conf enables this attributes for iis, csv, and msexchange as default. &lt;/P&gt;

&lt;P&gt;You can review the new **structuredparsing** queue information here: &lt;A&gt;http://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;So if you add a props.conf/transforms.conf to the Universal Forwarder's $SPLUNK_HOME/etc/system/local directory with the proper filtering then it will be done locally on the Universal Forwarder before sending to the indexer.   &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114242#M23883</guid>
      <dc:creator>shogan_splunk</dc:creator>
      <dc:date>2014-01-16T18:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114243#M23884</link>
      <description>&lt;P&gt;Just wondering if this was actually figured out successfully. We'd like to use the structuredparsing queue to filter events before forwarding to the indexer and the samples linked to don't seem to be all that useful?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 18:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114243#M23884</guid>
      <dc:creator>bdruth</dc:creator>
      <dc:date>2014-03-05T18:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114244#M23885</link>
      <description>&lt;P&gt;Do you have any examples of the configuration ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 17:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114244#M23885</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-06-20T17:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114245#M23886</link>
      <description>&lt;P&gt;@shogan is right, and here's an example config of how to make this happen when ingesting INDEXED_EXTRACTIONS logs on a Universal Forwarder:&lt;/P&gt;

&lt;P&gt;Given sample csv file:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;tak_tak.log&lt;/STRONG&gt;:&lt;BR /&gt;
&lt;CODE&gt;foo,bar,baz&lt;BR /&gt;
 abc,123,456&lt;BR /&gt;
 abcd,234,567&lt;BR /&gt;
 abcd,abcd,567&lt;BR /&gt;
 bcd,345,678&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you want to only exclude lines where the value of field 'bar' is 'abcd', setup a sourcetype as usual:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;BR /&gt;
&lt;CODE&gt;[jiggy_jiggy]&lt;BR /&gt;
 INDEXED_EXTRACTIONS=csv&lt;BR /&gt;
 TRANSFORMS-throw_some_away=throw_some_away&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And add a transform that makes use of "SOURCE_KEY" and "field:"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;BR /&gt;
&lt;CODE&gt;[throw_some_away]&lt;BR /&gt;
 SOURCE_KEY=field:bar&lt;BR /&gt;
 REGEX=abcd&lt;BR /&gt;
 DEST_KEY=queue&lt;BR /&gt;
 FORMAT=nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;To test, ingest the file on the UF while setting the correct sourcetype:&lt;BR /&gt;
&lt;CODE&gt;$ ./myfwder/bin/splunk add oneshot ~/tak_tak.log -sourcetype jiggy_jiggy&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And you should see 3 lines indexed, instead of 4.  Note that the line where only column 'foo' contains 'abcd' WILL be present, while the line where column 'bar' contains 'abcd' will NOT be present.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 20:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114245#M23886</guid>
      <dc:creator>amrit</dc:creator>
      <dc:date>2016-03-08T20:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114246#M23887</link>
      <description>&lt;P&gt;Hi Amrit,&lt;BR /&gt;
Your example is good but i have another use case.&lt;BR /&gt;
I want the entire field=bar not to be indexed. Specifically for IIS logs, i want the field cs_cookie to be not indexing and in hope of achieving this on the UF level. &lt;BR /&gt;
Any ideas on what the props/transforms configuration will be?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114246#M23887</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2016-03-24T16:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114247#M23888</link>
      <description>&lt;P&gt;I would just replace the contents of the cs_cookie field with an empty string.  The following change to the above configuration should do it, although I haven't tested this:&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
&lt;CODE&gt;[throw_some_away]&lt;BR /&gt;
 SOURCE_KEY=field:bar&lt;BR /&gt;
 REGEX=.&lt;BR /&gt;
 FORMAT=&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 21:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114247#M23888</guid>
      <dc:creator>amrit</dc:creator>
      <dc:date>2016-03-24T21:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114248#M23889</link>
      <description>&lt;P&gt;I tried this config but it gives the below warning on the UF internal logs:&lt;BR /&gt;
WARN  regexExtractionProcessor - Too few groups in regex: setnull-cs_Cookie; captures: 0, args: 1&lt;/P&gt;

&lt;P&gt;And the filtering of cs_cookie still fails.&lt;/P&gt;

&lt;P&gt;Below are my two files:&lt;BR /&gt;
props.conf&lt;BR /&gt;
[iis]&lt;BR /&gt;
TRANSFORMS-set=setnull-cs_Cookie&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnull-cs_Cookie]&lt;BR /&gt;
SOURCE_KEY=field:cs_Cookie&lt;BR /&gt;
 REGEX=.&lt;BR /&gt;
 FORMAT=&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114248#M23889</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2020-09-29T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114249#M23890</link>
      <description>&lt;P&gt;Based on "too few groups in regex", how about if you change the regex line to: REGEX=(.)&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2016 20:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114249#M23890</guid>
      <dc:creator>amrit</dc:creator>
      <dc:date>2016-03-25T20:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114250#M23891</link>
      <description>&lt;P&gt;Hi Amrit,&lt;BR /&gt;
REGEX=(.) has made the WARN disappear, but cs_cookie field is still not getting filtered (or is not being set to null)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 18:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114250#M23891</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2016-03-28T18:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114251#M23892</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
Any further thought on this? Its hard to believe that setting a field to null is so difficult in splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 20:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114251#M23892</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2016-03-29T20:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114252#M23893</link>
      <description>&lt;P&gt;Expanding on &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/119"&gt;@amrit&lt;/a&gt;'s example code, I was able to build a filter to exclude some HTTP Status codes from IIS logs using:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
&lt;PRE&gt;[iis]&lt;BR /&gt;
TRANSFORMS-HttpErrorsOnly=HttpErrorsOnly&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
&lt;PRE&gt;[HttpErrorsOnly]&lt;BR /&gt;
SOURCE_KEY=field:sc_status&lt;BR /&gt;
REGEX=[123]\d+&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114252#M23893</guid>
      <dc:creator>aaronwalker</dc:creator>
      <dc:date>2020-09-29T10:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114253#M23894</link>
      <description>&lt;P&gt;@amrit or @vsingla1  - - did you ever figure this out? I am looking to do something similar by dropping a number of IIS log fields. &lt;/P&gt;

&lt;P&gt;Thanks for any assistance!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114253#M23894</guid>
      <dc:creator>montgomeryam</dc:creator>
      <dc:date>2016-09-20T21:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114254#M23895</link>
      <description>&lt;P&gt;Did you ever get this working? We are wanting to drop a number of fields in an IIS log and the above solution from amrit doesn't work. &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114254#M23895</guid>
      <dc:creator>montgomeryam</dc:creator>
      <dc:date>2016-09-22T14:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114255#M23896</link>
      <description>&lt;P&gt;@montgomeryam: I had windows admin take care of it. There is a screen available where you can configure IIS logs and filter (through checkbox) its various components. So just filter it out on the windows level and splunk does not ever see them.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114255#M23896</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2016-09-22T14:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114256#M23897</link>
      <description>&lt;P&gt;Looks like a duplicate question:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/377865/filtering-on-uf-for-specific-events-then-delete-th.html#answer-378070"&gt;https://answers.splunk.com/answers/377865/filtering-on-uf-for-specific-events-then-delete-th.html#answer-378070&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114256#M23897</guid>
      <dc:creator>markschoonover</dc:creator>
      <dc:date>2016-09-22T14:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter iis logs before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114257#M23898</link>
      <description>&lt;P&gt;I appreciate the info! I will investigate that in our test lab to see if it will work for all of our Exchange logs. &lt;/P&gt;

&lt;P&gt;Seems weird how hard it is to send those fields to null values... &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-iis-logs-before-indexing/m-p/114257#M23898</guid>
      <dc:creator>montgomeryam</dc:creator>
      <dc:date>2016-09-22T14:42:38Z</dc:date>
    </item>
  </channel>
</rss>

