<?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 Multiple json events coming as one in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476766#M81855</link>
    <description>&lt;P&gt;I have multiple events which are coming as one &lt;BR /&gt;
and I need to separate them into separate events in order to create a table and etc&lt;BR /&gt;
Is there a way to do it in the search time? &lt;BR /&gt;
&lt;STRONG&gt;{&lt;BR /&gt;
        "Timestamp": "2020-02-08T15:45:00.036Z",&lt;BR /&gt;
        "Query Parameters": "",&lt;BR /&gt;
        "RequestMethod": "POST",&lt;BR /&gt;
        "Request": "{tt}",&lt;BR /&gt;
        "Response": "{tt}",&lt;BR /&gt;
        "HTTPStatusCode": "200",&lt;BR /&gt;
        "TotalResponseTimeApprox.(ms)": "290.0",&lt;BR /&gt;
        "TargetResponseTime(ms)": "241.0"&lt;BR /&gt;
    }{&lt;BR /&gt;
         "Timestamp": "2020-02-08T15:45:00.334Z",&lt;BR /&gt;
        "Query Parameters": "",&lt;BR /&gt;
        "RequestMethod": "POST",&lt;BR /&gt;
        "Request": "{tt}",&lt;BR /&gt;
        "Response": "{tt}",&lt;BR /&gt;
        "HTTPStatusCode": "200",&lt;BR /&gt;
        "TotalResponseTimeApprox.(ms)": "290.0",&lt;BR /&gt;
        "TargetResponseTime(ms)": "241.0"&lt;BR /&gt;
    }&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 12:36:42 GMT</pubDate>
    <dc:creator>khalid7assan</dc:creator>
    <dc:date>2020-04-16T12:36:42Z</dc:date>
    <item>
      <title>Multiple json events coming as one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476766#M81855</link>
      <description>&lt;P&gt;I have multiple events which are coming as one &lt;BR /&gt;
and I need to separate them into separate events in order to create a table and etc&lt;BR /&gt;
Is there a way to do it in the search time? &lt;BR /&gt;
&lt;STRONG&gt;{&lt;BR /&gt;
        "Timestamp": "2020-02-08T15:45:00.036Z",&lt;BR /&gt;
        "Query Parameters": "",&lt;BR /&gt;
        "RequestMethod": "POST",&lt;BR /&gt;
        "Request": "{tt}",&lt;BR /&gt;
        "Response": "{tt}",&lt;BR /&gt;
        "HTTPStatusCode": "200",&lt;BR /&gt;
        "TotalResponseTimeApprox.(ms)": "290.0",&lt;BR /&gt;
        "TargetResponseTime(ms)": "241.0"&lt;BR /&gt;
    }{&lt;BR /&gt;
         "Timestamp": "2020-02-08T15:45:00.334Z",&lt;BR /&gt;
        "Query Parameters": "",&lt;BR /&gt;
        "RequestMethod": "POST",&lt;BR /&gt;
        "Request": "{tt}",&lt;BR /&gt;
        "Response": "{tt}",&lt;BR /&gt;
        "HTTPStatusCode": "200",&lt;BR /&gt;
        "TotalResponseTimeApprox.(ms)": "290.0",&lt;BR /&gt;
        "TargetResponseTime(ms)": "241.0"&lt;BR /&gt;
    }&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 12:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476766#M81855</guid>
      <dc:creator>khalid7assan</dc:creator>
      <dc:date>2020-04-16T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple json events coming as one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476767#M81856</link>
      <description>&lt;P&gt;Hi @khalid7assan,&lt;/P&gt;

&lt;P&gt;Your event can be parsed with the following SPL:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw max_match=0 "(?ms)(?&amp;lt;split_raw&amp;gt;\{.+?\})(?=\{|\s*$)"
| mvexpand split_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can replicate the behaviour by copying and pasting the following code in Splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw = "
    {
    \"Timestamp\": \"2020-02-08T15:45:00.036Z\",
    \"Query Parameters\": \"\",
    \"RequestMethod\": \"POST\",
    \"Request\": \"{tt}\",
    \"Response\": \"{tt}\",
    \"HTTPStatusCode\": \"200\",
    \"TotalResponseTimeApprox.(ms)\": \"290.0\",
    \"TargetResponseTime(ms)\": \"241.0\"
    }{
    \"Timestamp\": \"2020-02-08T15:45:00.334Z\",
    \"Query Parameters\": \"\",
    \"RequestMethod\": \"POST\",
    \"Request\": \"{tt}\",
    \"Response\": \"{tt}\",
    \"HTTPStatusCode\": \"200\",
    \"TotalResponseTimeApprox.(ms)\": \"290.0\",
    \"TargetResponseTime(ms)\": \"241.0\"
    }
"

| rex field=_raw max_match=0 "(?ms)(?&amp;lt;split_raw&amp;gt;\{.+?\})(?=\{|\s*$)"
| mvexpand split_raw
| fields - _raw, _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8703iFBDA907738DBC55A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;If you find any issues or your events are more complex than the one you included in your question, please post some more examples so that we can take a look.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476767#M81856</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2020-04-16T14:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple json events coming as one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476768#M81857</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER =(^){
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;make appropriate props.conf &lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 21:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476768#M81857</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-16T21:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple json events coming as one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476769#M81858</link>
      <description>&lt;P&gt;Hi @khalid7assan, &lt;/P&gt;

&lt;P&gt;Did any of the answers below help with your problem? If so please don't forget to accept one so that other users can benefit from this answer in the future.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 16:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476769#M81858</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2020-04-19T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple json events coming as one</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476770#M81859</link>
      <description>&lt;P&gt;Thank you it worked &lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 07:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-json-events-coming-as-one/m-p/476770#M81859</guid>
      <dc:creator>khalid7assan</dc:creator>
      <dc:date>2020-04-20T07:31:44Z</dc:date>
    </item>
  </channel>
</rss>

