<?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 How to convert epoch time with milliseconds into splunk at indexing time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500885#M139462</link>
    <description>&lt;P&gt;I have a file that I am  monitoring has time in epoch format milliseconds .What setting should be placed in the props.conf to convert it to human readable&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 16:26:06 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2020-03-26T16:26:06Z</dc:date>
    <item>
      <title>How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500885#M139462</link>
      <description>&lt;P&gt;I have a file that I am  monitoring has time in epoch format milliseconds .What setting should be placed in the props.conf to convert it to human readable&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 16:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500885#M139462</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-03-26T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500886#M139463</link>
      <description>&lt;P&gt;You don't want to convert timestamps to human-readable format at index time because a human is not reading the timestamp at index time.  Use &lt;CODE&gt;TIME_FORMAT = %s%3N&lt;/CODE&gt; to tell Splunk the timestamp is in epoch form with milliseconds.  Remember to set &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; properly.&lt;/P&gt;

&lt;P&gt;Do the conversion to human-readable format at search time.  Do so using &lt;CODE&gt;fieldformat&lt;/CODE&gt; as late as possible in the query.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 16:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500886#M139463</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-26T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500887#M139464</link>
      <description>&lt;P&gt;Use &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Data/IngestEval"&gt;INGEST_EVAL&lt;/A&gt; in transforms.conf on &lt;STRONG&gt;indexers&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
TRANSFORMS = myeval
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[myeval]
INGEST_EVAL = human_readable_field = strftime(epoch_field_from_data, "%m-%d-%Y %H:%M:%S.%3N")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And on &lt;STRONG&gt;search heads&lt;/STRONG&gt; add this field in fields.conf so that users can search this field.&lt;BR /&gt;
fields.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[human_readable_field]
INDEXED = True
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Mar 2020 16:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500887#M139464</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-26T16:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500888#M139465</link>
      <description>&lt;P&gt;Thank you @richgalloway  .What time format do I need to set for events which have Mar 25, 21:43 UTC as timestamp&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 20:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500888#M139465</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-03-26T20:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500889#M139466</link>
      <description>&lt;P&gt;&lt;CODE&gt;%b %d, %H:%M:%S %Z&lt;/CODE&gt;.  See the "Date and time format variables" section of the Search Reference manual.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 21:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500889#M139466</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-26T21:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500890#M139467</link>
      <description>&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 21:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/500890#M139467</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-03-26T21:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/558219#M158559</link>
      <description>&lt;P&gt;%s is for 10 digits epoch? I have a 9 digit epoch and it seems the %s is not bsorking forb me?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 03:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/558219#M158559</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2021-07-03T03:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert epoch time with milliseconds into splunk at indexing time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/558251#M158572</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/98352"&gt;@HattrickNZ&lt;/a&gt;&amp;nbsp;if you are having a 9 digit epoch means, thats timestamp value is a very old timestamp(before&amp;nbsp;Sun Sep 9 01:46:39 2001 UTC)(but ideally it should work fine, something wrong.. pls provide us your search query)&lt;/P&gt;&lt;DIV class="clearfix text-formatted field field--name-field-question field--type-text-long field--label-above"&gt;Question&lt;P class="ibm-northstart-documentation-information-data"&gt;Will UNIX's epoch time change from 9 to 10 digits affect Gentran? (SCI8237)&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="clearfix text-formatted field field--name-field-answer field--type-text-long field--label-above"&gt;Answer&lt;P class="ibm-northstart-documentation-information-data"&gt;No. epoch time is how time is kept track of internally in UNIX. It's seconds, counting upward from January 1st, 1970. This number hit 1 million (1,000,000) in March of 1973, and will hit one billion (1,000,000,000) on Sun Sep 9 01:46:39 2001 UTC. This change, from a number which can be represented in 9 decimal digits to a 10-digit number, is not expected to cause any problems for UNIX systems.&lt;BR /&gt;&lt;BR /&gt;The reason is that this value is not stored as decimal digits. Instead, it is stored as an integer value (a 32-bit binary variable) which can be used safely until the year 2038, when the epoch date goes back to 0. The uses in UNIX of a decimal format for the "seconds time" value are primarily in portable file formats, such as tar, cpio, and ar. These formats have always supported at least eleven decimal (or octal in some cases) digits, easily handling UNIX's one-billionth "birthday".&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ibm.com/support/pages/will-unixs-epoch-time-change-9-10-digits-affect-gentran-sci8237-sterling-gentranserver-unix" target="_blank" rel="noopener"&gt;https://www.ibm.com/support/pages/will-unixs-epoch-time-change-9-10-digits-affect-gentran-sci8237-sterling-gentranserver-unix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 08:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-epoch-time-with-milliseconds-into-splunk-at/m-p/558251#M158572</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2021-07-04T08:39:54Z</dc:date>
    </item>
  </channel>
</rss>

