<?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: Pls help: JSON timestamp parsing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624852#M107406</link>
    <description>&lt;P&gt;1.&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/how-to-set-TIME-PREFIX-for-a-json-file/m-p/464284" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/how-to-set-TIME-PREFIX-for-a-json-file/m-p/464284&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(so, I guess TIME_PREFIX = authdevice.timestamp )&lt;/P&gt;&lt;P&gt;2. You may also need TIME_FORMAT = %s (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.2/Data/Configuretimestamprecognition#Enhanced_strptime.28.29_support" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.2/Data/Configuretimestamprecognition#Enhanced_strptime.28.29_support&lt;/A&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 13:46:45 GMT</pubDate>
    <dc:creator>wmazur-splunk</dc:creator>
    <dc:date>2022-12-20T13:46:45Z</dc:date>
    <item>
      <title>JSON timestamp parsing- When events are being fed from UF, the timestamp can't be extracted?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624816#M107399</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I use following simple props.conf to some json type events:&lt;/P&gt;
&lt;P&gt;[my:sourcetype]&lt;BR /&gt;category = Structured&lt;BR /&gt;DATETIME_CONFIG =&lt;BR /&gt;LINE_BREAKER=([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK=true&lt;BR /&gt;CHARSET=UTF-8&lt;BR /&gt;INDEXED_EXTRACTIONS=json&lt;BR /&gt;TIME_FORMAT=%s&lt;BR /&gt;disabled=false&lt;BR /&gt;pulldown_type=true&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;TIMESTAMP_FIELDS=timestamp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The event looks like following:&lt;/P&gt;
&lt;P&gt;{"access_device": {"browser": "Edge Chromium", "browser_version": "108.0.1462.54", "epkey": null, "flash_version": "uninstalled", "hostname": null, "ip": "192.168.182.230", "is_encryption_enabled": "unknown", "is_firewall_enabled": "unknown", "is_password_set": "unknown", "java_version": "uninstalled", "location": {"city": "&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Bestine&lt;/SPAN&gt;&lt;/SPAN&gt;", "country": "Tatooine", "state": "Central and Western District"}, "os": "Windows", "os_version": "10"}, "adaptive_trust_assessments": {}, "alias": "unknown", "application": {"key": "ABCDEFG1234567", "name": "[UAT] Hello World App"}, "auth_device": {"ip": null, "key": null, "location": {"city": null, "country": null, "state": null}, "name": null}, "email": null, "event_type": "authentication", "factor": "not_available", "isotimestamp": "2022-12-20T09:14:08.755759+00:00", "ood_software": null, "reason": "allow_unenrolled_user", "result": "success", "timestamp": 1671527648, "txid": "c571233d-b357-3f07-e126-ca2623b8e0d9", "user": {"groups": [], "key": null, "name": "luke"}, "eventtype": "authentication", "host": "jedi1.mydomain.com"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works when i test it through upload log file by setting sourcetype to my:sourcetype.&amp;nbsp; Fields and timestamp can be extracted.&lt;/P&gt;
&lt;P&gt;However, when events are being fed from UF, the timestamp can't be extracted and&amp;nbsp; using the file modified time as timestamp instead.&lt;/P&gt;
&lt;P&gt;Tried to add 'TIME_PREFIX=timestamp": ' but didn't help.&lt;/P&gt;
&lt;P&gt;Would anyone please help?&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 14:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624816#M107399</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2022-12-20T14:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pls help: JSON timestamp parsing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624852#M107406</link>
      <description>&lt;P&gt;1.&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/how-to-set-TIME-PREFIX-for-a-json-file/m-p/464284" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/how-to-set-TIME-PREFIX-for-a-json-file/m-p/464284&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(so, I guess TIME_PREFIX = authdevice.timestamp )&lt;/P&gt;&lt;P&gt;2. You may also need TIME_FORMAT = %s (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.2/Data/Configuretimestamprecognition#Enhanced_strptime.28.29_support" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.2/Data/Configuretimestamprecognition#Enhanced_strptime.28.29_support&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 13:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624852#M107406</guid>
      <dc:creator>wmazur-splunk</dc:creator>
      <dc:date>2022-12-20T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: JSON timestamp parsing- When events are being fed from UF, the timestamp can't be extracted?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624859#M107408</link>
      <description>&lt;P&gt;It sounds like Splunk is not finding the right timestamp field when the data comes from the UF.&amp;nbsp; Verify inputs.conf on the UF has the right sourcetype value.&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;TIME_PREFIX&lt;/FONT&gt; setting you tried is ambiguous.&amp;nbsp; The first match is "isotimestamp" which has a value that is not an epoch timestamp and Splunk perhaps doesn't find an epoch in the next &lt;FONT face="courier new,courier"&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/FONT&gt; characters.&amp;nbsp; Try this setting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX = "timestamp":&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 14:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624859#M107408</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-20T14:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: JSON timestamp parsing- When events are being fed from UF, the timestamp can't be extracted?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624925#M107422</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found that the problem is caused by putting some settings in props.conf in the wrong place.&lt;BR /&gt;The problem is resolved after putting following on the UF:&lt;/P&gt;&lt;P&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;TIMESTAMP_FIELDS = timestamp&lt;/P&gt;&lt;P&gt;and put KV_MODE=none on search head.&lt;/P&gt;&lt;P&gt;I have mistaken that index extraction always occurs on indexer which seems depends, based on this:&lt;BR /&gt;&lt;A href="https://www.aplura.com/assets/pdf/where_to_put_props.pdf" target="_blank"&gt;https://www.aplura.com/assets/pdf/where_to_put_props.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Best Rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 04:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-timestamp-parsing-When-events-are-being-fed-from-UF-the/m-p/624925#M107422</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2022-12-21T04:03:36Z</dc:date>
    </item>
  </channel>
</rss>

