<?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: linebreaker for json sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482900#M82733</link>
    <description>&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[audit_json]
SEDCMD-trim = s/^.*\[(.*)\]}/\1/g
LINE_BREAKER = }(,)
KV_MODE = json
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 01 Mar 2020 02:37:56 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-03-01T02:37:56Z</dc:date>
    <item>
      <title>linebreaker for json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482895#M82728</link>
      <description>&lt;P&gt;I am trying to break the below json data into each event&lt;/P&gt;

&lt;P&gt;{"audit_logs": [{"url": "&lt;A href="https://Company.udesk.com/api/v2/audit_logs/3650750.json" target="_blank"&gt;https://Company.udesk.com/api/v2/audit_logs/3650750.json&lt;/A&gt;", "id": 3650750, "actor_id": 27401, "source_id": 36012509503, "source_type": "view", "source_label": "View: Copy of  ALL CX BC", "action": "create", "change_description": "", "ip_address": "116.10.16.1", "created_at": "2019-12-13T06:04:32Z", "user": "VASU JOGI"}, {"url": "&lt;A href="https://Company.udesk.com/api/v2/audit_logs/365073140614.json" target="_blank"&gt;https://Company.udesk.com/api/v2/audit_logs/365073140614.json&lt;/A&gt;", "id": 365073140614, "actor_id": 28319638, "source_id": 3600001411, "source_type": "account_setting", "source_label": "Account Assumption", "action": "update", "change_description": "Changed", "ip_address": "160.12.15.26", "created_at": "2019-12-12T22:18:14Z", "user": "Sejal Jack"}]}&lt;/P&gt;

&lt;P&gt;from the above log event 1 should be as below and rest of the message should be another event. &lt;BR /&gt;
{"url": "&lt;A href="https://Company.udesk.com/api/v2/audit_logs/3650750.json" target="_blank"&gt;https://Company.udesk.com/api/v2/audit_logs/3650750.json&lt;/A&gt;", "id": 3650750, "actor_id": 27401, "source_id": 36012509503, "source_type": "view", "source_label": "View: Copy of  ALL CX BC", "action": "create", "change_description": "", "ip_address": "116.10.16.1", "created_at": "2019-12-13T06:04:32Z", "user": "VASU JOGI"},&lt;/P&gt;

&lt;P&gt;Below is my Props.conf which is deployed on UF. Please help to get it working&lt;/P&gt;

&lt;P&gt;[_json]&lt;BR /&gt;
LINE_BREAKER = (,*\s+){"url"&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482895#M82728</guid>
      <dc:creator>martinnepolean</dc:creator>
      <dc:date>2020-09-30T03:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: linebreaker for json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482896#M82729</link>
      <description>&lt;P&gt;Use the path command mit curl braces.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Spath" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Spath&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;|spath input=_raw output=events path=audit_logs{}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482896#M82729</guid>
      <dc:creator>calcometer</dc:creator>
      <dc:date>2020-09-30T03:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: linebreaker for json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482897#M82730</link>
      <description>&lt;P&gt;No it is not working? is it possible to do it via props file?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 15:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482897#M82730</guid>
      <dc:creator>martinnepolean</dc:creator>
      <dc:date>2020-01-14T15:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: linebreaker for json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482898#M82731</link>
      <description>&lt;P&gt;The input of _raw need to be the blank JSON String&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 09:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482898#M82731</guid>
      <dc:creator>calcometer</dc:creator>
      <dc:date>2020-01-15T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: linebreaker for json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482899#M82732</link>
      <description>&lt;P&gt;yes i tried, but no luck? is it not possible to do the parsing via props.conf .I am looking for search time field extraction.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 12:40:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482899#M82732</guid>
      <dc:creator>martinnepolean</dc:creator>
      <dc:date>2020-01-15T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: linebreaker for json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482900#M82733</link>
      <description>&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[audit_json]
SEDCMD-trim = s/^.*\[(.*)\]}/\1/g
LINE_BREAKER = }(,)
KV_MODE = json
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Mar 2020 02:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482900#M82733</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-01T02:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: linebreaker for json sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482901#M82734</link>
      <description>&lt;P&gt;try using below-mentioned search for your json index&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search
   | rex "(?&amp;lt;json&amp;gt;\{.+)" | spath input=json | fields - json  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Mar 2020 03:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/linebreaker-for-json-sourcetype/m-p/482901#M82734</guid>
      <dc:creator>sumanssah</dc:creator>
      <dc:date>2020-03-01T03:50:40Z</dc:date>
    </item>
  </channel>
</rss>

