<?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 the log time different than the system time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406918#M72186</link>
    <description>&lt;P&gt;Ah. Ok. Thanks for that. &lt;/P&gt;

&lt;P&gt;Should I even have a Props.conf for this app on the Universal Forwarder (server generating logs)? &lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2018 18:24:39 GMT</pubDate>
    <dc:creator>pdgill314</dc:creator>
    <dc:date>2018-05-22T18:24:39Z</dc:date>
    <item>
      <title>Why is the log time different than the system time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406914#M72182</link>
      <description>&lt;P&gt;I have been beating my head against the wall on this one for a few days now. I have tried every suggestion I can find...&lt;/P&gt;

&lt;P&gt;I have logs that are being generated in Eastern Time on a server. That server's date config is UTC. My Splunk indexers are in UTC. My timezone for my user is in Eastern Time, yet, the logs always show up 4 hours behind. &lt;/P&gt;

&lt;P&gt;Example log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-05-22T13:01:06.882,GMT-04:00 DEBUG "ajp-bio-127.0.0.1-8009-exec-405" []controller.CourseSectionManagementController.processCourseSection() line 70: CourseSectionManagementService Full Request org.apache.catalina.connector.RequestFacade@2ad67b7a 
2018-05-22T13:01:06.973,GMT-04:00 DEBUG "ajp-bio-127.0.0.1-8009-exec-405" [] service.impl.CourseSectionManagementServiceImpl.processDeleteCourseSectionRequest() line 89:  Message to be sent back to ABCD &amp;lt;200,&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What Splunk sees:&lt;/P&gt;

&lt;P&gt;_time 2018-05-22T09:01:06.882-04:00&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;5/22/18
9:01:06.882 AM  
2018-05-22T13:01:06.882,GMT-04:00 DEBUG "ajp-bio-127.0.0.1-8009-exec-405" [] controller.CourseSectionManagementController.processCourseSection() line 70: CourseSectionManagementService Full Request org.apache.catalina.connector.RequestFacade@2ad67b7a 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;_time 2018-05-22T09:01:06.973-04:00&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;5/22/18
9:01:06.973 AM  
2018-05-22T13:01:06.973,GMT-04:00 DEBUG "ajp-bio-127.0.0.1-8009-exec-405" [] service.impl.CourseSectionManagementServiceImpl.processDeleteCourseSectionRequest() line 89:  Message to be sent back to ABCD &amp;lt;200,&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props.conf file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Console]
KV_MODE = xml
DATETIME_CONFIG = NONE
TZ = America/New_York
TZ_ALIAS = GMT=UTC
TIME_FORMAT =  %Y-%m-%dT%H:%M:%S.%Q,%Z%:z
MAX_TIMESTAMP_LOOKAHEAD = 36
BREAK_ONLY_BEFORE_DATE = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///apps/tomcat-instances/*/logs/console/Console.log]
ignoreOlderThan = 7d
sourcetype = Console
index = sis
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestions on what I might be missing?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 17:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406914#M72182</guid>
      <dc:creator>pdgill314</dc:creator>
      <dc:date>2018-05-22T17:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the log time different than the system time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406915#M72183</link>
      <description>&lt;P&gt;I would make following changes to props.conf (which goes on Indexer/Heavy forwarder whichever comes first in the data flow),&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Console]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=\d{4}-\d{2}-\d{2}T)
TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N,GMT%:z
MAX_TIMESTAMP_LOOKAHEAD = 34
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your raw data has time zone in them, so no need to explicitly set it. Your data is not XML so, removing KV_MODE attribute there. (plus it should be set on search heads).&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 18:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406915#M72183</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-22T18:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the log time different than the system time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406916#M72184</link>
      <description>&lt;P&gt;Thank you for replying. Giving that a shot now. &lt;/P&gt;

&lt;P&gt;I tried adding what I had for the props.conf onto the indexers, and it worked to correct the time, but merged three events into one, so hopefully your suggestion should help. &lt;/P&gt;

&lt;P&gt;There is XML data there but it is in a SOAP envelope, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   ...
            &amp;lt;imsx_codeMajor&amp;gt;success&amp;lt;/imsx_codeMajor&amp;gt;
            &amp;lt;imsx_severity&amp;gt;warning&amp;lt;/imsx_severity&amp;gt;
            &amp;lt;imsx_description&amp;gt;success&amp;lt;/imsx_description&amp;gt;
        &amp;lt;/imsx_statusInfo&amp;gt;
    &amp;lt;/ns2:local&amp;gt;
    ,{}&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 18:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406916#M72184</guid>
      <dc:creator>pdgill314</dc:creator>
      <dc:date>2018-05-22T18:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the log time different than the system time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406917#M72185</link>
      <description>&lt;P&gt;Since your data is not pure XML (has some non-xml strings as well), the KV_MODE=xml would not work (which should be set on Search Heads).&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 18:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406917#M72185</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-22T18:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the log time different than the system time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406918#M72186</link>
      <description>&lt;P&gt;Ah. Ok. Thanks for that. &lt;/P&gt;

&lt;P&gt;Should I even have a Props.conf for this app on the Universal Forwarder (server generating logs)? &lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 18:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406918#M72186</guid>
      <dc:creator>pdgill314</dc:creator>
      <dc:date>2018-05-22T18:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the log time different than the system time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406919#M72187</link>
      <description>&lt;P&gt;Just to add, if Splunk recognizes a timezone information in the timestamp, any &lt;CODE&gt;TZ =&lt;/CODE&gt; setting will be ignored/overruled.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 19:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406919#M72187</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-22T19:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the log time different than the system time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406920#M72188</link>
      <description>&lt;P&gt;Ended up using this in the props.conf on my indexers:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Console]
SHOULD_LINEMERGE = false
TZ = America/New_York
TZ_ALIAS = GMT=UTC
LINE_BREAKER = ([\r\n]+)(?=\d{4}-\d{2}-\d{2}T)
TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%Q,%Z%:z
MAX_TIMESTAMP_LOOKAHEAD = 34
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Looks like it is working correctly now. &lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 20:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-log-time-different-than-the-system-time/m-p/406920#M72188</guid>
      <dc:creator>pdgill314</dc:creator>
      <dc:date>2018-05-22T20:00:06Z</dc:date>
    </item>
  </channel>
</rss>

