<?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: How to parse a JSON array delimited by &amp;quot;,&amp;quot; into separate events with their unique timestamps? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279461#M53503</link>
    <description>&lt;P&gt;thanks for the update. I used the above props.conf without the line breaker and it worked well. Thanks again for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2015 19:10:19 GMT</pubDate>
    <dc:creator>jensonthottian</dc:creator>
    <dc:date>2015-12-15T19:10:19Z</dc:date>
    <item>
      <title>How to parse a JSON array delimited by "," into separate events with their unique timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279457#M53499</link>
      <description>&lt;P&gt;Sample single event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[{"a":"057.00E09037A","b":"cdw","c":"1.2.7.7","d":"192.168.1.0","date":"2015-12-14T23:25:24.539Z"}, {"a":"057.00E09037A","b":"cdw","c":"1.2.7.7","d":"192.168.1.0","date":"2015-12-14T23:25:24.542Z"},
{"a":"057.00E09037A","b":"cdw","c":"1.2.7.7","d":"192.168.1.0","date":"2015-12-14T23:25:24.545Z"}]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please note the above event is an array with elements as JSON's with different timestamps.&lt;/P&gt;

&lt;P&gt;Is there an efficient configuration for props.conf to parse the above into 3 different events with their unique timestamps?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 23:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279457#M53499</guid>
      <dc:creator>jensonthottian</dc:creator>
      <dc:date>2015-12-14T23:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a JSON array delimited by "," into separate events with their unique timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279458#M53500</link>
      <description>&lt;P&gt;This will already result in three indexed events with the standard "_json" sourcetype. You can just copy those settings and create your own sourcetype.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 00:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279458#M53500</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-12-15T00:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a JSON array delimited by "," into separate events with their unique timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279459#M53501</link>
      <description>&lt;H2&gt;This is my props.conf for the JSON&lt;/H2&gt;

&lt;P&gt;LINE_BREAKER = (\x04)&lt;BR /&gt;
NO_BINARY_CHECK = 0&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
TIME_PREFIX=\,\"date\":\"&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N%Z&lt;BR /&gt;
TZ=UTC&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=300&lt;BR /&gt;
INDEXED_EXTRACTIONS = JSON&lt;/P&gt;

&lt;P&gt;But still its taking the array of JSON's as one event&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279459#M53501</guid>
      <dc:creator>jensonthottian</dc:creator>
      <dc:date>2020-09-29T08:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a JSON array delimited by "," into separate events with their unique timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279460#M53502</link>
      <description>&lt;P&gt;Your JSON data has standard xsd:dateTime timestamps, which Splunk will recognize automatically; and you only have one timestamp in there. So I would just get rid of TIME_PREFIX, TIME_FORMAT and TZ.&lt;BR /&gt;
I would also remove the LINE_BREAKER and let Splunk figure that out based on the JSON structure we understand.&lt;/P&gt;

&lt;P&gt;Note that INDEXED_EXTRACTIONS needs to be configured on the source system, where the logs are picked up (a Universal Forwarder, in most cases). &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279460#M53502</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2020-09-29T08:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a JSON array delimited by "," into separate events with their unique timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279461#M53503</link>
      <description>&lt;P&gt;thanks for the update. I used the above props.conf without the line breaker and it worked well. Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-a-JSON-array-delimited-by-quot-quot-into-separate/m-p/279461#M53503</guid>
      <dc:creator>jensonthottian</dc:creator>
      <dc:date>2015-12-15T19:10:19Z</dc:date>
    </item>
  </channel>
</rss>

