<?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: IIS log fields not parsing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108582#M22835</link>
    <description>&lt;P&gt;Had the same problem. This worked for me, though I had to change the required field as we weren't monitoring all. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2011 18:44:46 GMT</pubDate>
    <dc:creator>markrobinson734</dc:creator>
    <dc:date>2011-08-10T18:44:46Z</dc:date>
    <item>
      <title>IIS log fields not parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108578#M22831</link>
      <description>&lt;P&gt;Windows 2003 with SUF, inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\WINNT\system32\LogFiles\HTTPERR]
disabled = false
sourcetype = iis
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Linux running the indexer, props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iis]
CHECK_FOR_HEADER = true
[iis-2]
CHECK_FOR_HEADER = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on testing with oneshot uploads beforehand, I didn't need either of those but added them during troubleshooting. The logs are being tagged correctly by the forwarder with an &lt;CODE&gt;iis sourcetype&lt;/CODE&gt; -- &lt;CODE&gt;iis-2&lt;/CODE&gt; in this case. &lt;STRONG&gt;The fields are not being identified however.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If I upload one of the log files from the forwarder into the indexer via the web interface and specify &lt;CODE&gt;iis&lt;/CODE&gt; as the &lt;CODE&gt;sourcetype&lt;/CODE&gt;, the fields are extracted as I'd expect. (The uploaded file gets tagged as &lt;CODE&gt;iis-3&lt;/CODE&gt; FWIW.) &lt;/P&gt;

&lt;P&gt;Why are the Universal Forwarder logs being handled differently and how to fix it?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
jon&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2011 17:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108578#M22831</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2011-05-24T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: IIS log fields not parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108579#M22832</link>
      <description>&lt;P&gt;I have run into the same problem, and ended up specifying the extractions manually. The following will work for IIS W3C (with all fields enabled) as well as the HTTPERR log (which is what you are looking to index):&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iisw3c]
pulldown_type = true 
MAX_TIMESTAMP_LOOKAHEAD = 32
SHOULD_LINEMERGE = False
CHECK_FOR_HEADER = False
TZ = GMT
REPORT-iisw3cfields = iisw3cfields
TRANSFORMS-removecomments = removecomments

[iishttperr]
pulldown_type = true 
MAX_TIMESTAMP_LOOKAHEAD = 32
SHOULD_LINEMERGE = False
CHECK_FOR_HEADER = False
TZ = GMT
REPORT-iishttperrfields = iishttperrfields
TRANSFORMS-removecomments = removecomments
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[removecomments]
REGEX = ^\#.*
DEST_KEY = queue
FORMAT = nullQueue

# IIS W3C Log field extractions (Identical in IIS 6 and 7)
# These assume that you have enabled all available fields to be logged
[iisw3cfields]
DELIMS = " "
FIELDS = date,time,s-sitename,s-computername,s-ip,cs-method,cs-uri-stem,cs-uri-query,s-port,cs-username,c-ip,cs-version,cs(User-Agent),cs(Cookie),cs(Referer),cs-host,sc-status,sc-substatus,sc-win32-status,sc-bytes,cs-bytes,time-taken

[iishttperrfields]
DELIMS = " "
FIELDS = date,time,c-ip,c-port,s-ip,s-port,cs-version,cs-method,cs-uri,sc-status,s-siteid,s-reason,s-queuename
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then specify a sourcetype of [iisw3c] or [iishttperr] for your monitor in inputs.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2011 18:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108579#M22832</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-05-24T18:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: IIS log fields not parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108580#M22833</link>
      <description>&lt;P&gt;Well it's nice to see I'm not the only one on this one. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for the workarounds. Has Splunk Support weighed in on this? Seems like a bug to me, unless you and I both are missing something.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2011 20:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108580#M22833</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2011-05-24T20:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: IIS log fields not parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108581#M22834</link>
      <description>&lt;P&gt;I actually don't remember if I ever filed anything for this or not, but this seems to be a fairly common occurrence.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2011 20:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108581#M22834</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-05-24T20:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: IIS log fields not parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108582#M22835</link>
      <description>&lt;P&gt;Had the same problem. This worked for me, though I had to change the required field as we weren't monitoring all. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 18:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108582#M22835</guid>
      <dc:creator>markrobinson734</dc:creator>
      <dc:date>2011-08-10T18:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: IIS log fields not parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108583#M22836</link>
      <description>&lt;P&gt;I'm having the same issue. Is this filed as a bug anywhere?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2011 09:08:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108583#M22836</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-09-26T09:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: IIS log fields not parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108584#M22837</link>
      <description>&lt;P&gt;This is a known limitation of &lt;CODE&gt;CHECK_FOR_HEADER&lt;/CODE&gt; in a distributed environment.&lt;/P&gt;

&lt;P&gt;From &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf" target="_blank"&gt;props.conf.spec&lt;/A&gt; :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CHECK_FOR_HEADER = [true|false]
* Used for index-time field extractions only.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(...)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* The field names are stored in etc/apps/learned/local/props.conf.
  * Because of this, this feature will not work in most environments where the data is forwarded.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your case, CHECK_FOR_HEADER writes the header-based field extractions in the learned app &lt;STRONG&gt;of the forwarder&lt;/STRONG&gt;, information which is of course not available when you search from the indexer.&lt;/P&gt;

&lt;P&gt;Of the two work-arounds discussed here, my preference goes to ftk's (the second one listed) :&lt;/P&gt;

&lt;P&gt;1 - Ingest a couple of files on the indexer to create the field extractions there for sourcetypes &lt;CODE&gt;iis&lt;/CODE&gt; and &lt;CODE&gt;iis-2&lt;/CODE&gt; at the minimum.&lt;/P&gt;

&lt;P&gt;2 - Disable CHECK_FOR_HEADER on the forwarder for this sourcetype, clean up the learned app and configure the delimiter-based field extraction manually in transforms.conf on the indexer or search-head.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-log-fields-not-parsing/m-p/108584#M22837</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2020-09-28T09:56:29Z</dc:date>
    </item>
  </channel>
</rss>

