<?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: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122421#M32957</link>
    <description>&lt;P&gt;Is this part of an app or something you create yourself?  I do not see any configuration telling Splunk where and what format the timestamp is.  This is a fundamental thing that should always be done and can cause much havoc when not/incorrectly done:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may get improved/tolerable results by removing the &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 32&lt;/CODE&gt; because using that without being &lt;EM&gt;certain&lt;/EM&gt; that &lt;EM&gt;all&lt;/EM&gt; of the timestamp is in that range (1-32) will cause Splunk to not find a timestamp (which is what the log is saying).&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2015 14:56:08 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-01T14:56:08Z</dc:date>
    <item>
      <title>Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122418#M32954</link>
      <description>&lt;P&gt;We are scraping IIS advanced logs using Splunk Universal Forwarder and Indexers on v6.2.2.&lt;/P&gt;

&lt;P&gt;We've discovered that a small percentage of our logs are being parsed mid-line causing them to have incorrect field extractions. For example, in Splunk the lines are parsed as: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ro\MainWS.asmx" 200 "AU01" - 0 3015 900 - 1234:5678:abcd::8e98:6635 - "au01" POST 1201 - -

inWS.asmx app=fire(3408) "E:\inetpub\MainWS.asmx" 200 "AP01" - 0 5460 6505 - 1234:5678:abcd::8e98:683a - "ap01" POST 124 - -
nary/mainws.asmx - "E:\inetpub\binary\mainws.asmx" 200 "CGYETRMAP01" - 0 2587 5980 - 169.152.5.219 - "ap01" POST 1981 - -
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've verified in the original source files that the lines are properly formatted. &lt;/P&gt;

&lt;P&gt;I did find many instances of these warnings however I cannot determine why they are occurring.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;05-25-2015 00:09:24.806 -0600 WARN  DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event (Mon May 25 00:09:24 2015).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Our inputs.conf is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  [monitor://C:\inetpub\logs\AdvancedLogs]
    index = windows
    sourcetype=iis
    disabled = 0
    whitelist = \.log$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 May 2015 15:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122418#M32954</guid>
      <dc:creator>jberd126</dc:creator>
      <dc:date>2015-05-25T15:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122419#M32955</link>
      <description>&lt;P&gt;We need your props.conf file.  The log indicates you have ineffective timestamp configurations.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2015 16:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122419#M32955</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-25T16:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122420#M32956</link>
      <description>&lt;P&gt;Local forwarder props.conf &lt;BR /&gt;
[iis]&lt;BR /&gt;
TZ = UTC&lt;/P&gt;

&lt;P&gt;Indexer props.conf&lt;BR /&gt;
[iis]&lt;BR /&gt;
pulldown_type = true &lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 32&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;BR /&gt;
INDEXED_EXTRACTIONS = w3c&lt;BR /&gt;
detect_trailing_nulls = auto&lt;BR /&gt;
category = Web&lt;BR /&gt;
description = W3C Extended log format produced by the Microsoft Internet Information Services (IIS) web server&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122420#M32956</guid>
      <dc:creator>jberd126</dc:creator>
      <dc:date>2020-09-28T20:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122421#M32957</link>
      <description>&lt;P&gt;Is this part of an app or something you create yourself?  I do not see any configuration telling Splunk where and what format the timestamp is.  This is a fundamental thing that should always be done and can cause much havoc when not/incorrectly done:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may get improved/tolerable results by removing the &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 32&lt;/CODE&gt; because using that without being &lt;EM&gt;certain&lt;/EM&gt; that &lt;EM&gt;all&lt;/EM&gt; of the timestamp is in that range (1-32) will cause Splunk to not find a timestamp (which is what the log is saying).&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 14:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122421#M32957</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-01T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122422#M32958</link>
      <description>&lt;P&gt;We did not create anything other than the input (and assign the timezone, although I wouldn't expect that we should have to)&lt;/P&gt;

&lt;P&gt;We are using Splunk 6 indexed extractions that are out of the box.&lt;BR /&gt;
&lt;A href="http://blogs.splunk.com/2013/10/18/iis-logs-and-splunk-6/"&gt;http://blogs.splunk.com/2013/10/18/iis-logs-and-splunk-6/&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 17:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122422#M32958</guid>
      <dc:creator>jberd126</dc:creator>
      <dc:date>2015-06-01T17:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122423#M32959</link>
      <description>&lt;P&gt;I suspect that you log file is being written in chunks or intervals or just plain slow. Try adjusting time_before_close parameter in your monitor stanza and see if it would help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122423#M32959</guid>
      <dc:creator>rcdalisay</dc:creator>
      <dc:date>2020-09-29T06:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122424#M32960</link>
      <description>&lt;P&gt;@rcdalisay, &lt;BR /&gt;
Thanks for the tip - I'll look into that parameter.&lt;/P&gt;

&lt;P&gt;We've discovered that logs were getting parsed incorrectly after several hours (it's fine after rollover then gets wonky). Decreasing the rollover duration from 1 day to 1 hour appears to have worked around this problem however I haven't been able to correlate if it's a time or volume issue.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122424#M32960</guid>
      <dc:creator>jberd126</dc:creator>
      <dc:date>2015-07-15T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122425#M32961</link>
      <description>&lt;P&gt;I found this note:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The logs for IIS FTP flush to disk&lt;BR /&gt;
every 6 minutes, and the HTTP logs&lt;BR /&gt;
every 1 minute (or 64kb)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Flush IIS HTTP and FTP Logs to Disk - &lt;A href="http://weblogs.asp.net/owscott/flush-http-and-ftp-logs-in-iis"&gt;http://weblogs.asp.net/owscott/flush-http-and-ftp-logs-in-iis&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 15:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122425#M32961</guid>
      <dc:creator>jberd126</dc:creator>
      <dc:date>2015-07-27T15:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122426#M32962</link>
      <description>&lt;P&gt;It also possible that your lines are being truncated due to length.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 17:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122426#M32962</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-07-27T17:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why is a small percentage of our IIS Advanced Logs being parsed mid-line, causing them to have incorrect field extractions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122427#M32963</link>
      <description>&lt;P&gt;We set time_before_close parameter to 60, based on information in the following article and it resolved this parsing problem.&lt;/P&gt;

&lt;P&gt;Flush IIS HTTP and FTP Logs to Disk - &lt;A href="http://weblogs.asp.net/owscott/flush-http-and-ftp-logs-in-iis" target="_blank"&gt;http://weblogs.asp.net/owscott/flush-http-and-ftp-logs-in-iis&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iis]
...
time_before_close = 60
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-a-small-percentage-of-our-IIS-Advanced-Logs-being-parsed/m-p/122427#M32963</guid>
      <dc:creator>jberd126</dc:creator>
      <dc:date>2020-09-29T08:33:50Z</dc:date>
    </item>
  </channel>
</rss>

