<?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: Extract Epoch Time as readable time format using props.conf in Security</title>
    <link>https://community.splunk.com/t5/Security/Extract-Epoch-Time-as-readable-time-format-using-props-conf/m-p/696602#M18075</link>
    <description>&lt;P&gt;Your existing props.conf settings are good for telling Splunk how to extract _time from the events.&amp;nbsp; Don't try to put _time into human-readable format.&amp;nbsp; That's done automatically at search time.&amp;nbsp; Forcing it at ingest time will break how Splunk stores and retrieves events.&lt;/P&gt;&lt;P&gt;If you need another field to contain a human-readable form of _time then do it at search time using EVAL in props.conf.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[myprops]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = "timestamp":
TIME_FORMAT = %s%3N
EVAL-timestamp = strftime(_time, "%Y-%m-%dT%H:%M:%S.%3N")&lt;/LI-CODE&gt;&lt;P&gt;This applies to all apps, not just Enterprise Security&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2024 00:06:18 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-08-18T00:06:18Z</dc:date>
    <item>
      <title>Extract Epoch Time as readable time format using props.conf</title>
      <link>https://community.splunk.com/t5/Security/Extract-Epoch-Time-as-readable-time-format-using-props-conf/m-p/696600#M18074</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have events with epoch time. How can I extract epoch time in human readable format using props.conf. My props.conf file is provided below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[myprops]

SHUOLD_LINEMERGE=false

LINE_BREAK=([\r\n]+)

TIME_PREFIX="timestamp":

TIME_FORMAT=%s%3N

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Sample Events:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;{"id":"A303", "timestamp":1723933920339","message":"average time to transfer file"}&lt;/P&gt;
&lt;P&gt;{"id":"A307", "timestamp":1723933915610","message":"average time to hold process"}&lt;/P&gt;
&lt;P&gt;{"id":"A309", "timestamp":1723933735652","message":"average time to transfer file"}&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Extracted time should be&lt;/STRONG&gt;: YYYY-mm-ddTHH:MM:SS.3N&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 23:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Extract-Epoch-Time-as-readable-time-format-using-props-conf/m-p/696600#M18074</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2024-08-17T23:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Epoch Time as readable time format using props.conf</title>
      <link>https://community.splunk.com/t5/Security/Extract-Epoch-Time-as-readable-time-format-using-props-conf/m-p/696602#M18075</link>
      <description>&lt;P&gt;Your existing props.conf settings are good for telling Splunk how to extract _time from the events.&amp;nbsp; Don't try to put _time into human-readable format.&amp;nbsp; That's done automatically at search time.&amp;nbsp; Forcing it at ingest time will break how Splunk stores and retrieves events.&lt;/P&gt;&lt;P&gt;If you need another field to contain a human-readable form of _time then do it at search time using EVAL in props.conf.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[myprops]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)
TIME_PREFIX = "timestamp":
TIME_FORMAT = %s%3N
EVAL-timestamp = strftime(_time, "%Y-%m-%dT%H:%M:%S.%3N")&lt;/LI-CODE&gt;&lt;P&gt;This applies to all apps, not just Enterprise Security&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 00:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Extract-Epoch-Time-as-readable-time-format-using-props-conf/m-p/696602#M18075</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-08-18T00:06:18Z</dc:date>
    </item>
  </channel>
</rss>

