<?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 Extracting timestamp out of records in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-timestamp-out-of-records/m-p/57446#M14027</link>
    <description>&lt;P&gt;I have system records which are in following format&lt;/P&gt;

&lt;P&gt;RECORD_DATE=20130124145912|NAME=XYZ|PHONE=XXXXX|&lt;/P&gt;

&lt;P&gt;Normally there is delay of 2-3 hours before these records reach Splunk server.&lt;/P&gt;

&lt;P&gt;Splunk is displaying reports based on the time it receives records, can I configure Splunk to build all reports based on RECORD_DATE?&lt;/P&gt;

&lt;P&gt;RECORD_DATE is in YYYYMMMDDHHMMSS format.&lt;/P&gt;

&lt;P&gt;I have use strftime function for some of my reports, but this doesn't work for timeline. &lt;/P&gt;

&lt;P&gt;strftime(strptime(RECORD_DATE ,"%Y%m%d%H%M"),"%Y-%m-%d %H:%M")&lt;/P&gt;

&lt;P&gt;I want Splunk to use RECORD_DATE for timeline&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2013 21:20:09 GMT</pubDate>
    <dc:creator>rohitkashikar</dc:creator>
    <dc:date>2013-06-06T21:20:09Z</dc:date>
    <item>
      <title>Extracting timestamp out of records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-timestamp-out-of-records/m-p/57446#M14027</link>
      <description>&lt;P&gt;I have system records which are in following format&lt;/P&gt;

&lt;P&gt;RECORD_DATE=20130124145912|NAME=XYZ|PHONE=XXXXX|&lt;/P&gt;

&lt;P&gt;Normally there is delay of 2-3 hours before these records reach Splunk server.&lt;/P&gt;

&lt;P&gt;Splunk is displaying reports based on the time it receives records, can I configure Splunk to build all reports based on RECORD_DATE?&lt;/P&gt;

&lt;P&gt;RECORD_DATE is in YYYYMMMDDHHMMSS format.&lt;/P&gt;

&lt;P&gt;I have use strftime function for some of my reports, but this doesn't work for timeline. &lt;/P&gt;

&lt;P&gt;strftime(strptime(RECORD_DATE ,"%Y%m%d%H%M"),"%Y-%m-%d %H:%M")&lt;/P&gt;

&lt;P&gt;I want Splunk to use RECORD_DATE for timeline&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 21:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-timestamp-out-of-records/m-p/57446#M14027</guid>
      <dc:creator>rohitkashikar</dc:creator>
      <dc:date>2013-06-06T21:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting timestamp out of records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-timestamp-out-of-records/m-p/57447#M14028</link>
      <description>&lt;P&gt;Your statement is not entirely true.  The Real-time search is the only portion that streams live/continous view of events, which I dont think you are using. When you run a search that does not include real-time you are just running report.  Splunk will extracted _time from your log/event at time of index based on your props.conf. If you want Splunk to use the RECORD_DATE for your events timestamp you need to configure you props.conf for that source/sourcetype on your indexers.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
#props.conf stanza example (only an example)&lt;BR /&gt;
[RECORD]&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=38&lt;BR /&gt;
TIME_PREFIX=RECORD_DATE=&lt;BR /&gt;
TIME_FORMAT="%Y%m%d%H%M"&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Additional Reading: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Aboutsearch"&gt;Aboutsearch&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Indexer/Indextimeversussearchtime"&gt;Indextimeversussearchtime&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Data/Handleeventtimestamps"&gt;Handleeventtimestamps&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Admin/Propsconf"&gt;Propsconf&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Aboutrealtimesearches"&gt;Aboutrealtimesearches&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Hope this help you or gets you started.  Dont forget to vote and accept answers that help.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 22:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-timestamp-out-of-records/m-p/57447#M14028</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-06-06T22:19:58Z</dc:date>
    </item>
  </channel>
</rss>

