<?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: Timezone adjustment (TZ) failed for a single app -  IIS logs (UTC) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592013#M103639</link>
    <description>&lt;P&gt;Changing props.conf only affects newly-ingested events.&amp;nbsp; Data already indexed is unchanged.&amp;nbsp; Also, the &lt;FONT face="courier new,courier"&gt;TZ&lt;/FONT&gt; setting has no effect if the timestamp in the event contains a time zone indication.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 19:41:04 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-04-01T19:41:04Z</dc:date>
    <item>
      <title>Why did Timezone adjustment (TZ) failed for a single app?-  IIS logs (UTC)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/591941#M103631</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Trying to correlate failed logon attempts (event 4776) with the IIS OWA logs, I realized that the OWA logs are in UTC by default and I am in CEST time (Madrid).&lt;/P&gt;
&lt;P&gt;According to the official documentation&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;To configure time zone settings, edit the props.conf file in $FORWARDER_HOME/etc/system/local/ or in your own custom application directory in $FORWARDER_HOME/etc/apps/.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Data/Applytimezoneoffsetstotimestamps" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I deployed several apps in the exchange server but onle one app is reporting wrongly , called&amp;nbsp;TA-Windows-Exchange-IIS. So I only need to change the timezone in that specific app if I understood correctly.&lt;/P&gt;
&lt;P&gt;And this is what I did, creating the file props.conf in the local path of the app.&lt;/P&gt;
&lt;P&gt;C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-Windows-Exchange-IIS\local&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[monitor://C:\inetpub\logs\LogFiles\W3SVC1\*.log]
TZ = UTC

[monitor://E:\Program Files\Microsoft\Exchange Server\V15\Logging\Ews]
TZ = UTC&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I restarted the splunkforwarder service just in case. The result is that the time is still wrongly taken from those exchange events, in UTC.&lt;/P&gt;
&lt;P&gt;Any idea on what I am doing wrong?&lt;/P&gt;
&lt;P&gt;thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 16:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/591941#M103631</guid>
      <dc:creator>corti77</dc:creator>
      <dc:date>2022-04-04T16:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone adjustment (TZ) failed for a single app -  IIS logs (UTC)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592013#M103639</link>
      <description>&lt;P&gt;Changing props.conf only affects newly-ingested events.&amp;nbsp; Data already indexed is unchanged.&amp;nbsp; Also, the &lt;FONT face="courier new,courier"&gt;TZ&lt;/FONT&gt; setting has no effect if the timestamp in the event contains a time zone indication.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 19:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592013#M103639</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-04-01T19:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone adjustment (TZ) failed for a single app -  IIS logs (UTC)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592036#M103641</link>
      <description>&lt;P&gt;You need to set that parameter in props.conf and not in the inputs.conf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[monitor://....] -&amp;gt; that seems like inputs.conf stanza.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use props.conf something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::C:\inetpub\logs\LogFiles\W3SVC1\*.log]
TZ = UTC

[source::E:\Program Files\Microsoft\Exchange Server\V15\Logging\Ews...]
TZ = UTC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please consider accepting the answer if it resolves your issue.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 06:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592036#M103641</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-02T06:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone adjustment (TZ) failed for a single app -  IIS logs (UTC)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592342#M103686</link>
      <description>&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;You were right, I changed the stanza to source:: , force the deployment of the new props.conf, restart the splunk forwarders services and it worked!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source:://C:\inetpub\logs\LogFiles\W3SVC1\*.log]
TZ = UTC

[source:://E:\Program Files\Microsoft\Exchange Server\V15\Logging\Ews]
TZ = UTC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592342#M103686</guid>
      <dc:creator>corti77</dc:creator>
      <dc:date>2022-04-05T08:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone adjustment (TZ) failed for a single app -  IIS logs (UTC)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592385#M103697</link>
      <description>&lt;P&gt;Sorry but I just realized that it worked only in one of the logs (EWS) where the datetime is encoded in a single string, something like the one below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2022-04-01T14:00:00.868Z &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the second log (IIS logs), the dateime is encoded in two separated fields and the TZ does not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2022-04-05 00:00:13
#Fields: date time s-ip cs-method cs-uri-stem .........
2022-04-04 23:59:43 192.168.5.119 POST /EWS/Exchange.asmx ......&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea on how to solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 10:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592385#M103697</guid>
      <dc:creator>corti77</dc:creator>
      <dc:date>2022-04-05T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone adjustment (TZ) failed for a single app -  IIS logs (UTC)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592392#M103700</link>
      <description>&lt;P&gt;You need to add a few more parameters for timestamp extraction.&lt;/P&gt;&lt;P&gt;I don't which logs are from which source but make sure you have the following attribute added for all the source/sourcetypes for timestamp extraction.&lt;/P&gt;&lt;PRE&gt;TIME_PREFIX = &amp;lt;regular expression for text that comes before your timestamp in event&amp;gt;
MAX_TIMESTAMP_LOOKAHEAD = &amp;lt;generally specify how many character long&amp;gt;
TIME_FORMAT = &amp;lt;strptime-style format&amp;gt;&lt;/PRE&gt;&lt;P&gt;(This configuration does not work on Universal forwarder, so need to put on Indexers or HF, whichever is first in the data pipeline. If you are confused put common configuration everywhere.)&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please show me your sample single event from each source and what configuration you have added in props.conf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 10:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592392#M103700</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-05T10:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone adjustment (TZ) failed for a single app -  IIS logs (UTC)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592394#M103701</link>
      <description>&lt;P&gt;Thanks a lot for the reply.&lt;/P&gt;&lt;P&gt;below an example of a log of our IIS 10.0, sourcetype&amp;nbsp;&lt;STRONG&gt;MSWindows:2012:IIS&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2022-04-05 00:00:13
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken OriginalClientIP

2022-04-04 23:59:43 192.168.5.119 POST /EWS/Exchange.asmx &amp;amp;CorrelationID=&amp;lt;empty&amp;gt;;&amp;amp;cafeReqId=311a30a0-e1bc-4824-9bf8-78a84e51e66f; 443 - 192.168.1.10 OC/16.0.5266.1000+(Skype+for+Business) - 401 1 2148074254 6 192.168.120.019&lt;/LI-CODE&gt;&lt;P&gt;below the configuration in the local props.conf in the universal forwarder. &lt;STRONG&gt;This conversion&amp;nbsp;does not work.&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source:://C:\inetpub\logs\LogFiles\W3SVC1\*.log]
TZ = UTC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the EWS event , sourcetype&amp;nbsp;&lt;STRONG&gt;MSWindows:2013EWS:IIS&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#Software: Microsoft Exchange Server
#Version: 15.01.2375.024
#Log-type: EWS Logs
#Date: 2022-04-01T14:00:00.868Z
#Fields: DateTime,RequestId,MajorVersion,MinorVersion,BuildVersion,RevisionVersion,Ring,ClientRequestId,AuthenticationType,IsAuthenticated,AuthenticatedUser,Organization,UserAgent,VersionInfo,ClientIpAddress,ServerHostName,FrontEndServer,SoapAction,HttpStatus,RequestSize,ResponseSize,ErrorCode,ImpersonatedUser,ProxyAsUser,ActAsUser,Cookie,CorrelationGuid,PrimaryOrProxyServer,TaskType,RemoteBackendCount,LocalMailboxCount,RemoteMailboxCount,LocalIdCount,RemoteIdCount,BeginBudgetConnections,EndBudgetConnections,BeginBudgetHangingConnections,EndBudgetHangingConnections,BeginBudgetAD,EndBudgetAD,BeginBudgetCAS,EndBudgetCAS,BeginBudgetRPC,EndBudgetRPC,BeginBudgetFindCount,EndBudgetFindCount,BeginBudgetSubscriptions,EndBudgetSubscriptions,MDBResource,MDBHealth,MDBHistoricalLoad,ThrottlingPolicy,ThrottlingDelay,ThrottlingRequestType,TotalDCRequestCount,TotalDCRequestLatency,TotalMBXRequestCount,TotalMBXRequestLatency,RecipientLookupLatency,ExchangePrincipalLatency,HttpPipelineLatency,CheckAccessCoreLatency,AuthModuleLatency,CallContextInitLatency,PreExecutionLatency,CoreExecutionLatency,TotalRequestTime,DetailedExchangePrincipalLatency,ClientStatistics,GenericInfo,AuthenticationErrors,GenericErrors,Puid,StartTime,ProcessId,TimeInGC,StartTotalMemory,EndTotalMemory,StartGCCounts,EndGCCounts,TokenBasedThrottlingPolicy,BudgetKey,CoinsCharged,CoinsChargedMethod,SidBudgetInfo,AppBudgetInfo,TenantBudgetInfo,ResourceAccessed,ResourceHealthBasedThreshold,ThrottledBy,BackoffHint,WorkClassification


2022-04-01T14:00:00.868Z,,,,,,,,,,,,,,,ATLHQMPHSMX1,,Sbsc_CrteConn,,,,,,,,,5762e070-cd04-4a48-b8a0-c7e2e92bf44b,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"tid=218;ids=GwBhdGxocW1waHNteDEuZXVzYy5ldXJvcGEuZXUQAAAAu102b6n77UaAEklyXm6szlGKoAfXE9oIEAAAAHI7snqKwO9EmfSm6ShSBiA=,GwBhdGxocW1waHNteDEuZXVzYy5ldXJvcGEuZXUQAAAANp1bvAzPgk6hAQNcN48NUK5rnAfXE9oIEAAAAHI7snqKwO9EmfSm6ShSBiA=,GwBhdGxocW1waHNteDEuZXVzYy5ldXJvcGEuZXUQAAAAL/oQ6e4mOUyVLywPBYs3LmNglwfXE9oIEAAAAHI7snqKwO9EmfSm6ShSBiA=,;dts=cnt:3,LifeTime:900,",,,,,,,,,,,,,,,,,,,,,,&lt;/LI-CODE&gt;&lt;P&gt;below the configuration in the same local props.conf in the universal forwarder. This conversion does work correctly.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source:://E:\Program Files\Microsoft\Exchange Server\V15\Logging\Ews]
TZ = UTC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In which app should I configure those new attributes?&lt;/P&gt;&lt;P&gt;I would use the options below, what do you think?&lt;/P&gt;&lt;PRE&gt;MAX_TIMESTAMP_LOOKAHEAD = 20&lt;/PRE&gt;&lt;PRE&gt;TIME_FORMAT = "%Y-%m-%d %H:%M:%S"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 11:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-did-Timezone-adjustment-TZ-failed-for-a-single-app-IIS-logs/m-p/592394#M103701</guid>
      <dc:creator>corti77</dc:creator>
      <dc:date>2022-04-05T11:11:04Z</dc:date>
    </item>
  </channel>
</rss>

