<?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 logs and timezone in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27788#M4686</link>
    <description>&lt;P&gt;You might have a TZ mismatch issue.  If I'm not mistaken, Splunk assumes everything comes in UTC, then you have to tell it what to display.  Gerald Kanapathy has a much better explanation of it here: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/12014/utc-to-local-time-zone-conversion-on-the-fly-splunk-for-bluecoat"&gt;http://splunk-base.splunk.com/answers/12014/utc-to-local-time-zone-conversion-on-the-fly-splunk-for-bluecoat&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2012 17:57:46 GMT</pubDate>
    <dc:creator>mwhite_splunk</dc:creator>
    <dc:date>2012-08-08T17:57:46Z</dc:date>
    <item>
      <title>IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27783#M4681</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;
I have a problem with IIS logs' timestamps (the common issue where the events are indexed as they are logged, in GMT, and show up 4-5 hours in the future, since I am in the US). I searched splunk-base answers and I see a lot of people asking this same question. Most of the answers are the same, although there are variations. I have tried a lot of different options, the common and not so common solutions and nothing seems to work for me. Here is my current setup:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Universal Forwarder consuming IIS logs&lt;/LI&gt;
&lt;LI&gt;The UF is forwarding its data to an intermediary splunk instance, which in turn sends them to an indexer.&lt;/LI&gt;
&lt;LI&gt;I have created an deployment app called &lt;EM&gt;index_SSA&lt;/EM&gt; that the client gets which contains props and inputs.conf files where I am trying to set the TZ properties. The directory of the app, where I have the conf files is "C:\Program Files\SplunkUniversalForwarder\etc\apps\index_SSA\default"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The inputs.conf file:&lt;/P&gt;

&lt;P&gt;[monitor://C:\inetpub\logs]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
index = SSA&lt;/P&gt;

&lt;P&gt;The props.conf file (currently):&lt;/P&gt;

&lt;P&gt;.....&lt;/P&gt;

&lt;P&gt;[source::(?i)...\inetpub\Logs\W3SVC2\ex(.\d+)?.log]&lt;/P&gt;

&lt;P&gt;sourcetype = iisw3c&lt;/P&gt;

&lt;P&gt;TZ = GMT&lt;/P&gt;

&lt;P&gt;........&lt;/P&gt;

&lt;P&gt;I have also tried this in the props.conf:&lt;/P&gt;

&lt;P&gt;.......&lt;/P&gt;

&lt;P&gt;[iisw3c]&lt;/P&gt;

&lt;P&gt;sourcetype = iisw3c&lt;/P&gt;

&lt;P&gt;TZ = GMT&lt;/P&gt;

&lt;P&gt;......&lt;/P&gt;

&lt;P&gt;So, obviously I am doing something wrong, because none of the variations I have tried have worked... Ideally, I would like to be able to index IIS logs and their headers, be able to search and have the search reflect the correct time (i.e. when I search for events logged in the last 15 min, I want to see them in the search, and not have to search for events 4-5 hours in the future). I also would like Splunk to recognize and extract the fields from the IIS logs, so i can search for those values (or if I have to do the field extraction manually, then that is fine, but I want to know if I should do that vs. expect Splunk to automatically do it)&lt;/P&gt;

&lt;P&gt;If anyone can provide the stanzas and values that I should use, so I don't lose my mind... &lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 14:17:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27783#M4681</guid>
      <dc:creator>naydenk</dc:creator>
      <dc:date>2012-08-07T14:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27784#M4682</link>
      <description>&lt;P&gt;We will need to restart splunk in order to reflect configuration changed by CLI. Did you restart splunk after changing props.conf? And the configuration affect new coming data, not indexed data.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 05:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27784#M4682</guid>
      <dc:creator>Takajian</dc:creator>
      <dc:date>2012-08-08T05:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27785#M4683</link>
      <description>&lt;P&gt;Yes, I restart the client UF (where the indexed logs reside) after every change. Originally I was making the change to the app on the DS, then waiting for it to propagate to the client, but after a few tests I got impatient and was just changing the props.conf and inputs.conf directly on the client, then restarting the service. &lt;/P&gt;

&lt;P&gt;Regarding the logs - after every change I drop a new log, with new date stamps in the C:\inetpub\logs directory so that it is "fresh" data. I see the data indexed in the splunk search app, but it is with the original time stamps, 4 hours in the future...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 13:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27785#M4683</guid>
      <dc:creator>naydenk</dc:creator>
      <dc:date>2012-08-08T13:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27786#M4684</link>
      <description>&lt;P&gt;I think you may be overcomplicating the situation. This should work: &lt;/P&gt;

&lt;P&gt;[iisw3c] &lt;/P&gt;

&lt;P&gt;TZ = GMT&lt;/P&gt;

&lt;P&gt;and it needs to be in:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/ &lt;/P&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/apps/&lt;EM&gt;relevant_app&lt;/EM&gt;/&lt;/P&gt;

&lt;P&gt;on your UF. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27786#M4684</guid>
      <dc:creator>mwhite_splunk</dc:creator>
      <dc:date>2020-09-28T12:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27787#M4685</link>
      <description>&lt;P&gt;Thanks mwhite_splunk. Here is what I have now:&lt;/P&gt;

&lt;P&gt;"$SPLUNK_HOME\etc\system\local\props.conf"&lt;/P&gt;

&lt;P&gt;[iisw3c]&lt;BR /&gt;
TZ = GMT&lt;/P&gt;

&lt;P&gt;"$SPLUNK_HOME\etc\apps\index_SSA\default\props.conf"&lt;/P&gt;

&lt;P&gt;[iisw3c]&lt;BR /&gt;
TZ = GMT&lt;/P&gt;

&lt;P&gt;[source::(?i)...\inetpub\Logs\W3SVC2\ex(.\d+)?.log]&lt;BR /&gt;
sourcetype = iisw3c&lt;/P&gt;

&lt;P&gt;(plus some more source:: stanzas for other log dirs)&lt;/P&gt;

&lt;P&gt;"$SPLUNK_HOME\etc\apps\index_OSM\default\inputs.conf"&lt;/P&gt;

&lt;P&gt;[monitor://C:\inetpub\logs]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
sourcetype = iisw3c&lt;BR /&gt;
index = testindex&lt;/P&gt;

&lt;P&gt;(plus some more monitor: stanzas for other log dirs)&lt;/P&gt;

&lt;P&gt;A new file got indexed, but still the wrong time shows on the timeline.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27787#M4685</guid>
      <dc:creator>naydenk</dc:creator>
      <dc:date>2020-09-28T12:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27788#M4686</link>
      <description>&lt;P&gt;You might have a TZ mismatch issue.  If I'm not mistaken, Splunk assumes everything comes in UTC, then you have to tell it what to display.  Gerald Kanapathy has a much better explanation of it here: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/12014/utc-to-local-time-zone-conversion-on-the-fly-splunk-for-bluecoat"&gt;http://splunk-base.splunk.com/answers/12014/utc-to-local-time-zone-conversion-on-the-fly-splunk-for-bluecoat&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 17:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27788#M4686</guid>
      <dc:creator>mwhite_splunk</dc:creator>
      <dc:date>2012-08-08T17:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27789#M4687</link>
      <description>&lt;P&gt;Well, I agree, it is a mismatch and I think I am making the changes in the right place, but it is not being reflected when I do the searches, so I am either making the changes in the wrong config, or there is something else that is overriding it. Just to sum up:&lt;/P&gt;

&lt;P&gt;All splunk instances (UF, intermediary, indexer/search head) are in EST. The IIS log file's time stamps are in UTC. I have the changes I showed above in the props.conf and inputs.conf of the UF where the logs are being consumed (IIS server). &lt;/P&gt;

&lt;P&gt;... will continue in the next comment ...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 21:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27789#M4687</guid>
      <dc:creator>naydenk</dc:creator>
      <dc:date>2012-08-08T21:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: IIS logs and timezone</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27790#M4688</link>
      <description>&lt;P&gt;... continued ...&lt;/P&gt;

&lt;P&gt;When I search, I expect events logged in the from the past 10 min to show up in the "Last 15 min". In addition, I would like to see the IIS fields recognized (sc-status, uri-query, c-ip, etc.), which currently are not showing up either - not sure if this is a symptom related to this issue, or something else I need to deal with later.&lt;/P&gt;

&lt;P&gt;Thanks again for your patience and help... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 21:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-logs-and-timezone/m-p/27790#M4688</guid>
      <dc:creator>naydenk</dc:creator>
      <dc:date>2012-08-08T21:08:18Z</dc:date>
    </item>
  </channel>
</rss>

