<?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: Can you help me extract a timestamp from JSON? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394476#M70422</link>
    <description>&lt;P&gt;Thank you ! It works very well ! But...&lt;BR /&gt;
Now I have multivalue fields &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;BR /&gt;
I guess both extracted on HF and indexer. Any ideas ?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 10:20:57 GMT</pubDate>
    <dc:creator>francoisternois</dc:creator>
    <dc:date>2019-01-09T10:20:57Z</dc:date>
    <item>
      <title>Can you help me extract a timestamp from JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394474#M70420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm having trouble extracting timestamps from JSON on a production environment: Timestamp field is not used by Splunk as timestamp (and Splunk used the _indextime as timestamp). I tried to configure props.conf (see below) on both indexers and heavy forwarder (data are pulled from a data store on Azure). I have to say that on a local instance, it works fine.&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/6352i12701DA79320698B/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;Here is my raw data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"odata.etag": "W/\"datetime'2019-01-09T08%3A29%3A09.2933828Z'\"", "PartitionKey": "201901090829", "levelno": "10", "hostname": "5c6744d1d32c", "levelname": "DEBUG", "version": "v1.2.1-741-g19422ce", "component": "Watcher", "Timestamp": "2019-01-09T08:29:09.2933828Z", "RowKey": "20190109082909284-5c6744d1d32c-22-00", "message": "Watcher running...", "pathname": "/app/ccc/watcher/perimeter.py", "lineno": "61"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Different props.conf that I tried without any success :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
CHARSET = AUTO
KV_MODE = JSON
MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = false
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
TIME_PREFIX = Timestamp": "
category = Structured
disabled = false
pulldown_type = true

[sourcetype]
CHARSET = AUTO
INDEXED_EXTRACTIONS = json
KV_MODE = none
MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = false
TIMESTAMP_FIELDS = Timestamp
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
TIME_PREFIX = Timestamp": "
category = Structured
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is very welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Francois&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 08:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394474#M70420</guid>
      <dc:creator>francoisternois</dc:creator>
      <dc:date>2019-01-09T08:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract a timestamp from JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394475#M70421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If you are receiving data from Azure on Heavy Forwarder then try below props.conf on Heavy Forwarder.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
INDEXED_EXTRACTIONS=JSON
TIMESTAMP_FIELDS=Timestamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jan 2019 09:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394475#M70421</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-09T09:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract a timestamp from JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394476#M70422</link>
      <description>&lt;P&gt;Thank you ! It works very well ! But...&lt;BR /&gt;
Now I have multivalue fields &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;BR /&gt;
I guess both extracted on HF and indexer. Any ideas ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 10:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394476#M70422</guid>
      <dc:creator>francoisternois</dc:creator>
      <dc:date>2019-01-09T10:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract a timestamp from JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394477#M70423</link>
      <description>&lt;P&gt;Only first full instance of splunk is parsing the data so in your case only HF is parsing data. Can you please post your multivalue field sample data and what problem are you facing with it ? Also I'll suggest to remove config from Indexer if HF is parsing data.&lt;/P&gt;

&lt;P&gt;EDIT: It maybe due to config on Indexer, so first remove config from Indexer and then check.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 10:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394477#M70423</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-09T10:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract a timestamp from JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394478#M70424</link>
      <description>&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/6351iEBAB053D261B1B91/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
Thank again for your quick answer. Here is an example of what I'm facing. And I've no props.conf for this sourcetype. Maybe I should configure one indicating that it's cooked data ? &lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 10:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394478#M70424</guid>
      <dc:creator>francoisternois</dc:creator>
      <dc:date>2019-01-09T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract a timestamp from JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394479#M70425</link>
      <description>&lt;P&gt;On search head can you please configure below props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
KV_MODE = none
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jan 2019 10:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394479#M70425</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-09T10:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract a timestamp from JSON?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394480#M70426</link>
      <description>&lt;P&gt;That's perfect ! Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 11:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-a-timestamp-from-JSON/m-p/394480#M70426</guid>
      <dc:creator>francoisternois</dc:creator>
      <dc:date>2019-01-09T11:55:34Z</dc:date>
    </item>
  </channel>
</rss>

