<?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: Help with converting epoch to human readable at index time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495380#M84490</link>
    <description>&lt;P&gt;Refer to this answer:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/111161/how-do-i-get-splunk-to-recognise-epoch-time.html"&gt;https://answers.splunk.com/answers/111161/how-do-i-get-splunk-to-recognise-epoch-time.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2020 01:52:22 GMT</pubDate>
    <dc:creator>anmolpatel</dc:creator>
    <dc:date>2020-03-13T01:52:22Z</dc:date>
    <item>
      <title>Help with converting epoch to human readable at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495379#M84489</link>
      <description>&lt;P&gt;I have json format data with  a field called  &lt;STRONG&gt;uploadDate&lt;/STRONG&gt; .This has values like /Date(1584037059228)/ , /Date(1584033289090)/ etc . What stanza do I need to add at index time so that it will take the uploadDate as the timestamp field and convert it to human readable format .The following strftime works when testing&lt;/P&gt;

&lt;P&gt;strftime(epoch/1000, "%Y-%m-%d %H:%M:%S")&lt;/P&gt;

&lt;P&gt;Sample event&lt;/P&gt;

&lt;P&gt;{"fileName":"TEST.yxmd","id":"0bb814","isChained":false,"metaInfo":{"author":"","copyright":"","description":"","name":"ATEST","noOutputFilesMessage":"","outputMessage":"","url":"","urlText":""},"packageType":1,"public":false,"runCount":1,"runDisabled":false,"subscriptionId":"5d395","&lt;STRONG&gt;uploadDate&lt;/STRONG&gt;":"&lt;STRONG&gt;\/Date(1584037059228)&lt;/STRONG&gt;\/","version":null,"workerTag":"","collections":[{"collectionId":"5e6a534","collectionName":"Test"}],"lastRunDate":"\/Date(1584037059000-0400)\/","publishedVersionId":"5e6a0031bb","publishedVersionNumber":4,"publishedVersionOwner":{"active":true,"email":"son.com","firstName":"a","id":"c398","lastName":"ngi","sId":null,"subscriptionId":"3c395"},"subscriptionName":"i"}&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 01:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495379#M84489</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-03-13T01:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with converting epoch to human readable at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495380#M84490</link>
      <description>&lt;P&gt;Refer to this answer:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/111161/how-do-i-get-splunk-to-recognise-epoch-time.html"&gt;https://answers.splunk.com/answers/111161/how-do-i-get-splunk-to-recognise-epoch-time.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 01:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495380#M84490</guid>
      <dc:creator>anmolpatel</dc:creator>
      <dc:date>2020-03-13T01:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with converting epoch to human readable at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495381#M84491</link>
      <description>&lt;P&gt;@anmolpatel  .Thank you for your reply but it did not work&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 02:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495381#M84491</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-03-13T02:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with converting epoch to human readable at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495382#M84492</link>
      <description>&lt;P&gt;check your MAX_TIMESTAMP_LOOKAHEAD (default is 128 char, which doesn't apply in your case) and TIME_PREFIX in props.conf for the selected sourcetype. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495382#M84492</guid>
      <dc:creator>anmolpatel</dc:creator>
      <dc:date>2020-09-30T04:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with converting epoch to human readable at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495383#M84493</link>
      <description>&lt;P&gt;Hey @vrmandadi,&lt;/P&gt;

&lt;P&gt;To convert epoc time to human readable format you will have to create props.conf before indexing your data.&lt;BR /&gt;
Please update these setting in your props.conf for respected app:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Your_Sourcetype]
DATETIME_CONFIG =
INDEXED_EXTRACTIONS = json
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
TIME_FORMAT = %s%3N
TIME_PREFIX = \/Date
category = Structured
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if this works.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 11:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-converting-epoch-to-human-readable-at-index-time/m-p/495383#M84493</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2020-03-13T11:01:32Z</dc:date>
    </item>
  </channel>
</rss>

