<?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: Unable to extract new timestamp field in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341826#M5262</link>
    <description>&lt;P&gt;oh....you were right...example has a dit and I just follow but my data did not have. Now it shows the milliseconds...thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 08:06:53 GMT</pubDate>
    <dc:creator>wuming79</dc:creator>
    <dc:date>2017-06-13T08:06:53Z</dc:date>
    <item>
      <title>Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341814#M5250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a log file with timestamp = time of saving the file thus the timestamp from splunk are all the same. I not want to extract the epoch time example "1495447178314" and make it as my timestamp. Is that possible? &lt;/P&gt;

&lt;P&gt;I also tried to extract new field using regular expression &lt;CODE&gt;\d{13}[^\}\}]*&lt;/CODE&gt; but could not get anything when I applied it.  Using &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; to test it out, somehow it looks like there were 2 matches. Can someone help? Maybe is it the way I do the &lt;CODE&gt;\}\}&lt;/CODE&gt;  ? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;15199256 [EPS-log-dispatcher-9] INFO 
1.24978294676695149906 - {"Log Header": "{"endpointKeyHash":null,"applicationToken":null,"headerVersion":null,"timestamp":null,"logSchemaVersion":null}", "Event": {"temperature":35,"timeStamp":1495447178314}}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2017 10:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341814#M5250</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-10T10:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341815#M5251</link>
      <description>&lt;P&gt;I think you should be able to use TIME_PREFIX to tell Splunk where the timestamp is and %s to tell Splunk the format.  These setting need to go in props.conf.  If the input is coming from a universal forwarder, then the props config should be on your indexer likely.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = "timeStamp":
TIME_FORMAT = %s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There was a similar answer here:  &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>Sat, 10 Jun 2017 12:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341815#M5251</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2017-06-10T12:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341816#M5252</link>
      <description>&lt;P&gt;Do I just add to 1st 2 rows of props.conf file below [custom_log]? &lt;/P&gt;

&lt;P&gt;Currently my props.conf file is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom_log]
DATETIME_CONFIG = 
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Application
description = For IoT Demo
disabled = false
maxDist = 75
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried to upload the data again but it still shows the  file saved time instead of the timestamp. Is there other ways such as extracting it as another field?&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3051i20EB19A2405B0F14/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3052iDE7D25A51AD5339F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341816#M5252</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-12T13:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341817#M5253</link>
      <description>&lt;P&gt;I managed to extract my new field but it seems not what I wanted...the "Time" still 6/10/17.....&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3053iD7217267EF9A259A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 14:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341817#M5253</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-12T14:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341818#M5254</link>
      <description>&lt;P&gt;i'm having a little trouble reading your screenshots.  But those settings should be in props.conf for the sourcetype of the log you're ingesting.  I see you referenced the stanza for custom_log, but what about for the IoT Temperature sourcetype?  The timestamp settings need to be applied there.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 14:24:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341818#M5254</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2017-06-12T14:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341819#M5255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I managed to make the time format from Epoch to human readable but I can't really get the millisecond out.&lt;BR /&gt;&lt;BR /&gt;
Example timeStamp":1495447178314&lt;BR /&gt;
From Splunk it converted to "5/22/17 5:59:38.000 PM" but from &lt;A href="https://answers.splunk.comstorage/temp/206578-capture4.png"&gt;https://www.epochconverter.com/&lt;/A&gt;, it is showing &lt;BR /&gt;
May 22, 2017 5:59:38.314 PM&lt;/P&gt;

&lt;P&gt;Reference document: &lt;A href="https://answers.splunk.comstorage/temp/206578-capture4.png"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Configuretimestamprecognition&lt;/A&gt;, .%3N should show the milliseconds. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3054i3024E53A096DCB11/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3055iCE09797DE8174750/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Another weird thing is, I had to use %s%s.%3N to show the time in my time zone. If I use %s.%3N, it will show all my time to be "12/31/99 11:59:59.999 PM". Am I supposed to use just %s.%3N?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 14:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341819#M5255</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-12T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341820#M5256</link>
      <description>&lt;P&gt;Actually, I didn't know how and where to edit the props.conf ...&lt;BR /&gt;
I think I used the UI to change the timestamp format and time prefix and saved a new sourcetype? Is this ok?&lt;/P&gt;

&lt;P&gt;[&lt;A href="http://imgur.com/4Nn9Bf1%5D%5B1"&gt;http://imgur.com/4Nn9Bf1][1&lt;/A&gt;]&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341820#M5256</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-12T15:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341821#M5257</link>
      <description>&lt;P&gt;So are you just uploading the file in the GUI over an over?  Not sure what your env looks like, how you plan to ingest this data, etc.  It doesn't matter necessarily what you call the sourcetype, but that you are using the same sourcetype when you search for the data as when you ingest it.  &lt;/P&gt;

&lt;P&gt;So is the timestamp correct in Splunk yet?  Maybe not to the ms, but is it no longer 6/10?  I'm having trouble following along with all of these posts. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341821#M5257</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2017-06-12T15:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341822#M5258</link>
      <description>&lt;P&gt;The latest I got the the post below with EpochCOnverter screenshot.  Actually, the above screenshots are all different. I think we can skip the above screenshots now since I managed to get the timestamp now but with the milliseconds still having some issues.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:42:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341822#M5258</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-12T15:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341823#M5259</link>
      <description>&lt;P&gt;So the timestamp of the splunk event is correct (minus milliseconds)?  You're not just extracting the timestamp to a new field, right?  There is a big difference, so want to be sure splunk timestamping is working as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341823#M5259</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2017-06-12T16:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341824#M5260</link>
      <description>&lt;P&gt;yup, timestamp working minus milliseconds and I'm no longer extracting it as a new field.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341824#M5260</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-12T16:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341825#M5261</link>
      <description>&lt;P&gt;Ok.  I'm not sure about the millseconds part, maybe %s%3N?  &lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341825#M5261</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2017-06-12T18:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract new timestamp field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341826#M5262</link>
      <description>&lt;P&gt;oh....you were right...example has a dit and I just follow but my data did not have. Now it shows the milliseconds...thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 08:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unable-to-extract-new-timestamp-field/m-p/341826#M5262</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-06-13T08:06:53Z</dc:date>
    </item>
  </channel>
</rss>

