<?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: Need assistance with time_format - timezone? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-with-time-format-timezone/m-p/68056#M13767</link>
    <description>&lt;P&gt;I have been told that we use strftime for time formating and for reference in props.conf&lt;BR /&gt;
&lt;A href="http://php.net/manual/en/function.strftime.php" target="_blank"&gt;http://php.net/manual/en/function.strftime.php&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Based on your string - &lt;/P&gt;

&lt;P&gt;15:09:55.128 UTC AUG 31 2011&lt;BR /&gt;
Try this&lt;/P&gt;

&lt;P&gt;%H:%M:%S.%3N UTC %h %d %Y&lt;/P&gt;

&lt;P&gt;You also need to set the TIME_PREFIX = ^\d+?\s\w{4}:\s+?[ and possibly MAX_TIMESTAMP_LOOKAHEAD = 35 (number of characters to look into the line to find the timestamp&lt;/P&gt;

&lt;P&gt;The day depends – is it 1-31 = %e or 01-31 = %d&lt;BR /&gt;
According to strftime - %t is a tab, I think you just have spaces.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:51:39 GMT</pubDate>
    <dc:creator>SplunkSE</dc:creator>
    <dc:date>2020-09-28T09:51:39Z</dc:date>
    <item>
      <title>Need assistance with time_format - timezone?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-with-time-format-timezone/m-p/68055#M13766</link>
      <description>&lt;P&gt;Hey everyone. I am trying to add a time-format to my props.conf file. The source is a csv file containing multiple timestamps for each event. I'm only interested in the first one.&lt;/P&gt;

&lt;P&gt;The timestamp looks like this in the event: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;15:09:55.128 UTC AUG 31 2011
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So in my props.conf I was planning to add something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%H:%M:%S.%q%Z%tUTC%t%b%t%d%t%Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a more elegant way to handle the time zone being embedded in the middle? I can't find any reference in strptime() to dealing with time zones. Any help would be appreciated. I've tried letting splunk recognize the timestamp but it seems to be screwing up a bit.&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 18:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-with-time-format-timezone/m-p/68055#M13766</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-08-31T18:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need assistance with time_format - timezone?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-with-time-format-timezone/m-p/68056#M13767</link>
      <description>&lt;P&gt;I have been told that we use strftime for time formating and for reference in props.conf&lt;BR /&gt;
&lt;A href="http://php.net/manual/en/function.strftime.php" target="_blank"&gt;http://php.net/manual/en/function.strftime.php&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Based on your string - &lt;/P&gt;

&lt;P&gt;15:09:55.128 UTC AUG 31 2011&lt;BR /&gt;
Try this&lt;/P&gt;

&lt;P&gt;%H:%M:%S.%3N UTC %h %d %Y&lt;/P&gt;

&lt;P&gt;You also need to set the TIME_PREFIX = ^\d+?\s\w{4}:\s+?[ and possibly MAX_TIMESTAMP_LOOKAHEAD = 35 (number of characters to look into the line to find the timestamp&lt;/P&gt;

&lt;P&gt;The day depends – is it 1-31 = %e or 01-31 = %d&lt;BR /&gt;
According to strftime - %t is a tab, I think you just have spaces.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-assistance-with-time-format-timezone/m-p/68056#M13767</guid>
      <dc:creator>SplunkSE</dc:creator>
      <dc:date>2020-09-28T09:51:39Z</dc:date>
    </item>
  </channel>
</rss>

