<?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 how to parse json to extract multiple line event ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268655#M51530</link>
    <description>&lt;P&gt;i have one file json that contain many object like that :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "id": 1,
    "name": "toto",
    "price": 1.50,
    "tags": ["travel", "red"] } 
{
        "id": 2,
        "name": "toto",
        "price": 12,
        "tags": ["home", "green"] }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i need to extract that on two event for the example : how can i use line_breaker on props.conf &lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 12:59:31 GMT</pubDate>
    <dc:creator>sfatnass</dc:creator>
    <dc:date>2016-09-08T12:59:31Z</dc:date>
    <item>
      <title>how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268655#M51530</link>
      <description>&lt;P&gt;i have one file json that contain many object like that :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "id": 1,
    "name": "toto",
    "price": 1.50,
    "tags": ["travel", "red"] } 
{
        "id": 2,
        "name": "toto",
        "price": 12,
        "tags": ["home", "green"] }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i need to extract that on two event for the example : how can i use line_breaker on props.conf &lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268655#M51530</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-09-08T12:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268656#M51531</link>
      <description>&lt;P&gt;This method will index each field name in the json payload:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ &amp;lt;SOURCETYPE NAME&amp;gt; ]  
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
CHARSET=AUTO
INDEXED_EXTRACTIONS=json
KV_MODE=none
disabled=false
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would not and would come at a lower performance cost:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ &amp;lt;SOURCETYPE NAME&amp;gt; ]
CHARSET=AUTO
SHOULD_LINEMERGE=false
disabled=false
LINE_BREAKER=(^){.*"id":
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Sep 2016 13:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268656#M51531</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-08T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268657#M51532</link>
      <description>&lt;P&gt;this is my current configuraiton in the props.conf&lt;BR /&gt;
    [json]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::.../mysource...]
sourcetype = json
SHOULD_LINEMERGE = false
TRUNCATE=0
NO_BINARY_CHECK = 1
LINE_BREAKER = ([\r\n]+){
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then i need to have something like that :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[json]

[source::.../mysource...]
 SHOULD_LINEMERGE=true
 NO_BINARY_CHECK=true
 CHARSET=AUTO
 INDEXED_EXTRACTIONS=json
 KV_MODE=json
 disabled=false
 pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it's ok like that, it work very well and the performence is great thx&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 13:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268657#M51532</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-09-08T13:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268658#M51533</link>
      <description>&lt;P&gt;Do you want the fields extracted at index time or search time?&lt;/P&gt;

&lt;P&gt;Both examples I gave you worked with your example data so either you didn't reindex the data, didn't put the props in the correct place, or maybe the example data you provided isn't exactly like the data you're ingesting.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 13:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268658#M51533</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-08T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268659#M51534</link>
      <description>&lt;P&gt;The settings you used would index the fields and would need to be placed on the universal forwarder and indexers.  It wouldn't apply to data already ingested either.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 14:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268659#M51534</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-08T14:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268660#M51535</link>
      <description>&lt;P&gt;just to extract json for many event like your exemple and extract all field too, because i will use some request and  i need to know who the field contain the correct value ^^&lt;BR /&gt;
but it's ok and thx for your reply&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 18:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268660#M51535</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-09-08T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268661#M51536</link>
      <description>&lt;P&gt;great, just so you know the INDEXED_EXTRACTIONS will consume more disk space and does require more CPU on the indexers/forwarders&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 19:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268661#M51536</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-08T19:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268662#M51537</link>
      <description>&lt;P&gt;ok but it's more performent no? the objectif of my project is to play more speed ^^&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 20:51:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268662#M51537</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-09-08T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to parse json to extract multiple line event ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268663#M51538</link>
      <description>&lt;P&gt;It can be faster when you're searching for the fields involved yes.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 21:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-parse-json-to-extract-multiple-line-event/m-p/268663#M51538</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-08T21:34:46Z</dc:date>
    </item>
  </channel>
</rss>

