<?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: Change epoc time to human readable format in Security</title>
    <link>https://community.splunk.com/t5/Security/Change-epoc-time-to-human-readable-format/m-p/555408#M12304</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222217"&gt;@islam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search-time conversion,&amp;nbsp; You have to first extract the epoc into a field_name. For example if you have extracted to field_name - epoc_time.&lt;/P&gt;&lt;P&gt;Then inside props.conf, place this conf on Search Head,&amp;nbsp; $SPLUNK_HOME/system/local or $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/local.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
EVAL-readable_time=strftime(epoc_time/pow(10,9), "%d-%m-%YT%H:%M:%S.%3Q")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;A new filed will get added as 'readable_time' when you search the sourcetype.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 01:56:40 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-06-11T01:56:40Z</dc:date>
    <item>
      <title>Change epoc time to human readable format</title>
      <link>https://community.splunk.com/t5/Security/Change-epoc-time-to-human-readable-format/m-p/555397#M12302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have indexed logs with epoc time format in the raw event like 1623070612620000000,&lt;/P&gt;&lt;P&gt;and this time field is parsed in this format also.&lt;/P&gt;&lt;P&gt;i want to convert this time format to human readable one in permanent way, how can i do that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 00:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Change-epoc-time-to-human-readable-format/m-p/555397#M12302</guid>
      <dc:creator>islam</dc:creator>
      <dc:date>2021-06-11T00:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change epoc time to human readable format</title>
      <link>https://community.splunk.com/t5/Security/Change-epoc-time-to-human-readable-format/m-p/555408#M12304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222217"&gt;@islam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search-time conversion,&amp;nbsp; You have to first extract the epoc into a field_name. For example if you have extracted to field_name - epoc_time.&lt;/P&gt;&lt;P&gt;Then inside props.conf, place this conf on Search Head,&amp;nbsp; $SPLUNK_HOME/system/local or $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/local.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
EVAL-readable_time=strftime(epoc_time/pow(10,9), "%d-%m-%YT%H:%M:%S.%3Q")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;A new filed will get added as 'readable_time' when you search the sourcetype.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 01:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Change-epoc-time-to-human-readable-format/m-p/555408#M12304</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-11T01:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change epoc time to human readable format</title>
      <link>https://community.splunk.com/t5/Security/Change-epoc-time-to-human-readable-format/m-p/555409#M12305</link>
      <description>&lt;P&gt;Based on the epoch time value you provided, I am assuming it is with nano seconds.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If it is _time, you can add&amp;nbsp;&lt;SPAN&gt;TIME_FORMAT = %s%9N in your props.conf for telling Splunk that&amp;nbsp;timestamp is in epoch form with nanoseconds.&lt;BR /&gt;&lt;BR /&gt;If it is not _time, You can create a calculated field using something like this&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;strftime(timefield/pow(10,9),"%Y-%m-%dT%H:%M:%S.%Q")&lt;BR /&gt;&lt;BR /&gt;If you are doing it in search:&lt;BR /&gt;| eval timefield=strftime(tiemfield/pow(10,9),"%Y-%m-%dT%H:%M:%S.%Q")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 01:59:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Change-epoc-time-to-human-readable-format/m-p/555409#M12305</guid>
      <dc:creator>rupkumar4sec</dc:creator>
      <dc:date>2021-06-11T01:59:20Z</dc:date>
    </item>
  </channel>
</rss>

