<?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 forward JSON data to splunk Properly in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530846#M89333</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;Modified props but it's giving single event without breaking json&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 14:49:27 GMT</pubDate>
    <dc:creator>kirrusk</dc:creator>
    <dc:date>2020-11-25T14:49:27Z</dc:date>
    <item>
      <title>how to forward JSON data to splunk Properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530815#M89322</link>
      <description>&lt;P&gt;I have a json file like below, i need to broke it up in to events&lt;/P&gt;&lt;P&gt;{"env":"UAT","label":"jenkins-17887.api.v2.dm.btc","App":"dm-d-services","rlmtemplate":"f2_api_fed","lastupdate":2020-11-23 11:09:78:455,"region":"APAC"},{"env":"UAT","label":"jenkins-17687.api.v2.dm.btc","App":"dt-s-services","rlmtemplate":"f3_api_fed","lastupdate":2020-11-23 11:025:79:475,"region":"APAC"},{"env":"UAT","label":"jenkins-18657.api.v2.dm.btc","App":"dt-s-services","rlmtemplate":"f3_api_fed","lastupdate":2020-11-23 11:025:79:475,"region":"APAC"},{"env":"UAT","label":"jenkins-17637.api.v2.dm.btc","App":"dt-s-services","rlmtemplate":"f3_api_fed","lastupdate":2020-11-23 11:025:79:475,"region":"APAC"}&lt;/P&gt;&lt;P&gt;I'm trying to forward it to splunk&lt;/P&gt;&lt;P&gt;modified props.conf file like below&lt;/P&gt;&lt;P&gt;[test_json]&lt;/P&gt;&lt;P&gt;INDEXED_EXTRACTIONS = JSON&lt;/P&gt;&lt;P&gt;LINEBREAKER = }(,){"env":&lt;/P&gt;&lt;P&gt;SHOULD_LINEMERGE = false&lt;/P&gt;&lt;P&gt;NO_BINARY_CHECK = true&lt;/P&gt;&lt;P&gt;TRUNCATE = 0&lt;/P&gt;&lt;P&gt;TZ = Asia/Singapore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But only getting first line of json as event , remaining data is not coming to splunk.&lt;/P&gt;&lt;P&gt;==Firstline ==&lt;/P&gt;&lt;P&gt;"env":"UAT","label":"jenkins-17887.api.v2.dm.btc","App":"dm-d-services","rlmtemplate":"f2_api_fed","lastupdate":2020-11-23 11:09:78:455,"region":"APAC"&lt;/P&gt;&lt;P&gt;Can any one suggest what's going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 13:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530815#M89322</guid>
      <dc:creator>kirrusk</dc:creator>
      <dc:date>2020-11-25T13:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to forward JSON data to splunk Properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530822#M89325</link>
      <description>&lt;LI-CODE lang="markup"&gt;[test_json]
DATETIME_CONFIG = 
KV_MODE = json
LINE_BREAKER = (,){
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIME_FORMAT = %F %H:%M
TIME_PREFIX = lastupdate\":&lt;/LI-CODE&gt;&lt;P&gt;indexed_extractions can't work.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 13:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530822#M89325</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-11-25T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to forward JSON data to splunk Properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530832#M89328</link>
      <description>&lt;P&gt;"LINEBREAKER" should be "LINE_BREAKER".&amp;nbsp; The props must be installed on the first heavy forwarder or indexer the events pass through.&amp;nbsp; Don't forget to restart Splunk after modifying props.conf.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530832#M89328</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-25T14:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to forward JSON data to splunk Properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530845#M89332</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; I have used&amp;nbsp;&lt;SPAN&gt;LINE_BREAKER , and props is installed on indexer. Still not working.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530845#M89332</guid>
      <dc:creator>kirrusk</dc:creator>
      <dc:date>2020-11-25T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to forward JSON data to splunk Properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530846#M89333</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;Modified props but it's giving single event without breaking json&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530846#M89333</guid>
      <dc:creator>kirrusk</dc:creator>
      <dc:date>2020-11-25T14:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to forward JSON data to splunk Properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530882#M89336</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; What simplified things for me was to ask the people creating logs not to have the trailing comma. So the logs look like this&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"timestamp": "2020-11-25 08:59:24 UTC", "hostname": "foo.com", "status": "failed"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"timestamp": "2020-11-25 08:59:29 UTC", "hostname": "bar.com", "status": "passed"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Props are&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[my_sourcetype]
INDEXED_EXTRACTIONS = JSON
KV_MODE = none
SHOULD_LINEMERGE=false
TIME_PREFIX = timestamp\":\s*\"
TIME_FORMAT=%Y-%m-%d %H:%M:%S %Z
MAX_TIMESTAMP_LOOKAHEAD=23
TRUNCATE=99999&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 20:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530882#M89336</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2020-11-25T20:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to forward JSON data to splunk Properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530948#M89346</link>
      <description>&lt;P&gt;Thank you all,&amp;nbsp; it's working for me after removing comma's using sed command.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 07:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-forward-JSON-data-to-splunk-Properly/m-p/530948#M89346</guid>
      <dc:creator>kirrusk</dc:creator>
      <dc:date>2020-11-26T07:16:59Z</dc:date>
    </item>
  </channel>
</rss>

