<?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 add multiple json events as one array? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-json-events-as-one-array/m-p/332071#M61495</link>
    <description>&lt;P&gt;I am getting output json like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "preview": false,
    "result": {
        "job": "abdghytr",
        "Status": "STARTING",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS"
    }
} {
    "preview": false,
    "result": {
        "job": "nscdlu8317_w15-repgii",
        "Status": "SUCCESS",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS",
        "exitcodestatus": "0"
    }
} 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want the output like below with array.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[{
    "preview": false,
    "result": {
        "job": "abdghytr",
        "Status": "STARTING",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS"
    }
}, {
    "preview": false,
    "result": {
        "job": "nscdlu8317_w15-repgii",
        "Status": "SUCCESS",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS",
        "exitcodestatus": "0"
    }
} ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can some one please help.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 20:40:16 GMT</pubDate>
    <dc:creator>yuvarajsap</dc:creator>
    <dc:date>2018-01-23T20:40:16Z</dc:date>
    <item>
      <title>How to add multiple json events as one array?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-json-events-as-one-array/m-p/332071#M61495</link>
      <description>&lt;P&gt;I am getting output json like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "preview": false,
    "result": {
        "job": "abdghytr",
        "Status": "STARTING",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS"
    }
} {
    "preview": false,
    "result": {
        "job": "nscdlu8317_w15-repgii",
        "Status": "SUCCESS",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS",
        "exitcodestatus": "0"
    }
} 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want the output like below with array.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[{
    "preview": false,
    "result": {
        "job": "abdghytr",
        "Status": "STARTING",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS"
    }
}, {
    "preview": false,
    "result": {
        "job": "nscdlu8317_w15-repgii",
        "Status": "SUCCESS",
        "_time": "2018-01-22T10:12:55.000+0000",
        "source": "/opt/CA/WorkloadAutomationAE",
        "host": "testmachine",
        "machine": "testmachine-068",
        "event": "CHANGE_STATUS",
        "exitcodestatus": "0"
    }
} ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can some one please help.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 20:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-json-events-as-one-array/m-p/332071#M61495</guid>
      <dc:creator>yuvarajsap</dc:creator>
      <dc:date>2018-01-23T20:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add multiple json events as one array?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-json-events-as-one-array/m-p/332072#M61496</link>
      <description>&lt;P&gt;Can you provide some sample raw event before indexing?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 07:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-multiple-json-events-as-one-array/m-p/332072#M61496</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-01-24T07:27:54Z</dc:date>
    </item>
  </channel>
</rss>

