<?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: regex for TIME_FORMAT in epoch  milliseconds time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382615#M111787</link>
    <description>&lt;P&gt;no it dint work &lt;BR /&gt;
this is my sample&lt;BR /&gt;
No it dint work,&lt;/P&gt;

&lt;P&gt;this is my sample&lt;BR /&gt;
6/13/18&lt;BR /&gt;
4:10:04.000 PM&lt;BR /&gt;&lt;BR /&gt;
{   [-] &lt;BR /&gt;
     cdate:  Wed Jun 13 16:10:04 2018&lt;BR /&gt;&lt;BR /&gt;
     finalStatus:    SUCCEEDED&lt;BR /&gt;&lt;BR /&gt;
     id:     application_xxxxx&lt;BR /&gt;&lt;BR /&gt;
     name:   Export job (158882): xxxxxxxxxxxxxx&lt;BR /&gt;
     startedTime:    1528840802983&lt;BR /&gt;&lt;BR /&gt;
     user:   xxxx&lt;BR /&gt;
}&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 14:11:51 GMT</pubDate>
    <dc:creator>Mohsin123</dc:creator>
    <dc:date>2018-06-13T14:11:51Z</dc:date>
    <item>
      <title>regex for TIME_FORMAT in epoch  milliseconds time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382611#M111783</link>
      <description>&lt;P&gt;Hey There !&lt;/P&gt;

&lt;P&gt;I have this sort of entry in my event :&lt;BR /&gt;
startedTime:     1528840802983&lt;/P&gt;

&lt;P&gt;this is in epoch time &lt;BR /&gt;
I was trying a regex for the TIME_FORMAT &lt;/P&gt;

&lt;P&gt;TIME_PREFIX=\"startedTime\": \"&lt;BR /&gt;
TIME_FORMAT= %s%3N&lt;/P&gt;

&lt;P&gt;Could you pl correct me on the TIME_FORMAT&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382611#M111783</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2020-09-29T19:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: regex for TIME_FORMAT in epoch  milliseconds time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382612#M111784</link>
      <description>&lt;P&gt;&lt;CODE&gt;1528840802983&lt;/CODE&gt; is in milliseconds? I think its in seconds then in that case &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; should be &lt;CODE&gt;%s&lt;/CODE&gt; and  &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; should be &lt;CODE&gt;startedTime\:\s&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 13:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382612#M111784</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-06-13T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: regex for TIME_FORMAT in epoch  milliseconds time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382613#M111785</link>
      <description>&lt;P&gt;As mayurr98 stated, I think your props.conf TIME_PREFIX parameter should look like this. Since you have 13 digits in your epoch time I'm guessing it goes out to milliseconds so your TIME_FORMAT may already be correct. Let us know if that works.&lt;/P&gt;

&lt;P&gt;TIME_PREFIX = startedTime:\s&lt;BR /&gt;
TIME_FORMAT = %s%3N&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382613#M111785</guid>
      <dc:creator>lacastillo</dc:creator>
      <dc:date>2020-09-29T19:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: regex for TIME_FORMAT in epoch  milliseconds time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382614#M111786</link>
      <description>&lt;P&gt;No it dint work,&lt;/P&gt;

&lt;P&gt;this is my sample&lt;BR /&gt;
6/13/18&lt;BR /&gt;
4:10:04.000 PM&lt;BR /&gt;&lt;BR /&gt;
{   [-] &lt;BR /&gt;
     cdate:  Wed Jun 13 16:10:04 2018&lt;BR /&gt;&lt;BR /&gt;
     finalStatus:    SUCCEEDED&lt;BR /&gt;&lt;BR /&gt;
     id:     application_xxxxx&lt;BR /&gt;&lt;BR /&gt;
     name:   Export job (158882): xxxxxxxxxxxxxx&lt;BR /&gt;
     startedTime:    1528840802983&lt;BR /&gt;&lt;BR /&gt;
     user:   xxxx&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382614#M111786</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2018-06-13T14:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: regex for TIME_FORMAT in epoch  milliseconds time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382615#M111787</link>
      <description>&lt;P&gt;no it dint work &lt;BR /&gt;
this is my sample&lt;BR /&gt;
No it dint work,&lt;/P&gt;

&lt;P&gt;this is my sample&lt;BR /&gt;
6/13/18&lt;BR /&gt;
4:10:04.000 PM&lt;BR /&gt;&lt;BR /&gt;
{   [-] &lt;BR /&gt;
     cdate:  Wed Jun 13 16:10:04 2018&lt;BR /&gt;&lt;BR /&gt;
     finalStatus:    SUCCEEDED&lt;BR /&gt;&lt;BR /&gt;
     id:     application_xxxxx&lt;BR /&gt;&lt;BR /&gt;
     name:   Export job (158882): xxxxxxxxxxxxxx&lt;BR /&gt;
     startedTime:    1528840802983&lt;BR /&gt;&lt;BR /&gt;
     user:   xxxx&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382615#M111787</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2018-06-13T14:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: regex for TIME_FORMAT in epoch  milliseconds time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382616#M111788</link>
      <description>&lt;P&gt;Are you able to show us your current props.conf? Is it just the timestamp that you're having trouble with?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 14:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382616#M111788</guid>
      <dc:creator>lacastillo</dc:creator>
      <dc:date>2018-06-13T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: regex for TIME_FORMAT in epoch  milliseconds time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382617#M111789</link>
      <description>&lt;P&gt;Using your sample event I was able to ingest the data with the proper timestamp using the following props.conf&lt;/P&gt;

&lt;P&gt;[test_sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_PREFIX = startedTime:\s&lt;BR /&gt;
TIME_FORMAT = %s%3N&lt;BR /&gt;
LINE_BREAKER = \}([\r\n]+)&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 300&lt;BR /&gt;
TRUNCATE = 1000&lt;/P&gt;

&lt;P&gt;Keep in mind that this was done with only a single event so your MAX_TIMESTAMP_LOOKAHEAD and TRUNCATE values may have to be adjusted as necessary. Please let me know if this helped.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-for-TIME-FORMAT-in-epoch-milliseconds-time/m-p/382617#M111789</guid>
      <dc:creator>lacastillo</dc:creator>
      <dc:date>2020-09-29T19:54:31Z</dc:date>
    </item>
  </channel>
</rss>

