<?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: trying to parse out a timestamp in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139277#M38272</link>
    <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %m/%d %H:%M
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You were using 12hr hour setting, but your log data is in 24hr notation.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2013 20:26:25 GMT</pubDate>
    <dc:creator>jtrucks</dc:creator>
    <dc:date>2013-11-12T20:26:25Z</dc:date>
    <item>
      <title>trying to parse out a timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139275#M38270</link>
      <description>&lt;P&gt;i have a log that looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;terminate_type=VOICE timestamp=11/05 14:43 trunk=A044003
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the format is "month/date hour/minute". under the data preview advanced pane to parse the file, i use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# your settings
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=false
TIME_FORMAT=%m/%d
TIME_PREFIX=timestamp\=
TZ=America/Los_Angeles
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and it picks up the month and date fine (11/5/13). however, when i edit the format to try and pick up the time with something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%m/%d %h:%M
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it screws up and thinks that the date is now:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;5/14/11 2:43:00.000 PM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;ie the date, month and year are all screwed up.&lt;/P&gt;

&lt;P&gt;any suggestions welcome!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139275#M38270</guid>
      <dc:creator>ytl</dc:creator>
      <dc:date>2013-11-12T20:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: trying to parse out a timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139276#M38271</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%m/%d %H:%M
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use %H when it is a 24 hour clock, %h is for a 12 hour clock.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139276#M38271</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-12T20:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: trying to parse out a timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139277#M38272</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %m/%d %H:%M
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You were using 12hr hour setting, but your log data is in 24hr notation.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:26:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139277#M38272</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-11-12T20:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: trying to parse out a timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139278#M38273</link>
      <description>&lt;P&gt;duh! thanks! that worked a treat.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139278#M38273</guid>
      <dc:creator>ytl</dc:creator>
      <dc:date>2013-11-12T21:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: trying to parse out a timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139279#M38274</link>
      <description>&lt;P&gt;Awesome, glad I could help!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/trying-to-parse-out-a-timestamp/m-p/139279#M38274</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-12T21:25:26Z</dc:date>
    </item>
  </channel>
</rss>

