<?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: Trying to break multiline event into separate events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189119#M187130</link>
    <description>&lt;P&gt;sorry that was a typo on my part. I did include the backslashes in my props.conf file and it didn't work. I'm still getting multiple events grouped into a single Splunk event.&lt;/P&gt;

&lt;P&gt;I edited the props.conf file in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt; because that's what the Splunk doc said to do: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Indexmulti-lineevents"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Indexmulti-lineevents&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Should I be editing it in &lt;CODE&gt;$SPLUNK_HOME/etc/users/admin/search/local&lt;/CODE&gt; instead? &lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2015 20:38:08 GMT</pubDate>
    <dc:creator>snandaku</dc:creator>
    <dc:date>2015-05-19T20:38:08Z</dc:date>
    <item>
      <title>Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189114#M187125</link>
      <description>&lt;P&gt;Sample Data: {{"device_id":"a1c842ef8c0545f48e8e61d3e03c68bb","ip":"192.168.193.162","topic":"DEVICE","event":"device.access", "timestamp":"2015-05-05T20:55:30.904+0000"}}&lt;/P&gt;

&lt;P&gt;I want to break this into two separate events using &lt;CODE&gt;}}&lt;/CODE&gt; as a delimiter: &lt;BR /&gt;
{{"device_id":"a1c842ef8c0545f48e8e61d3e03c68bb","ip":"192.168.193.162","topic":"DEVICE","event":"device.access", "timestamp":"2015-05-05T20:55:30.904+0000"}}&lt;/P&gt;

&lt;P&gt;AND &lt;/P&gt;

&lt;P&gt;{{"source":{"email":"&lt;A href="mailto:johndoe@acme.com"&gt;johndoe@acme.com&lt;/A&gt;"}, "name":"John Doe"},"topic":"FILE","event":"file.create","timestamp":"2015-05-05T20:55:31.428+0000"}}&lt;/P&gt;

&lt;P&gt;I created a &lt;CODE&gt;props.conf&lt;/CODE&gt; file in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;, added the following lines, and restarted splunkd, but it didn't work. &lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
LINE_BREAKER = (}})&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Any help would be much appreciated! &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 08:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189114#M187125</guid>
      <dc:creator>snandaku</dc:creator>
      <dc:date>2015-05-15T08:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189115#M187126</link>
      <description>&lt;P&gt;Your sample data seems to be incomplete.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 09:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189115#M187126</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-15T09:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189116#M187127</link>
      <description>&lt;P&gt;Did you put the correct &lt;CODE&gt;sourcetype&lt;/CODE&gt; in your stanza header?  Try this (escape curly braces)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = \}\}([\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 May 2015 15:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189116#M187127</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-19T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189117#M187128</link>
      <description>&lt;P&gt;that didn't work either. This is exactly what I have in my &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;/CODE&gt; file:  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[_json]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
LINE_BREAKER = \}\}([\r\n]+)&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 19:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189117#M187128</guid>
      <dc:creator>snandaku</dc:creator>
      <dc:date>2015-05-19T19:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189118#M187129</link>
      <description>&lt;P&gt;First of all you should not be editing that file; you should make your own file in your own app directory.  In any case, you did not preserve the backslashes.  You have to use &lt;EM&gt;exactly&lt;/EM&gt; what I wrote in my answer.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 20:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189118#M187129</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-19T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189119#M187130</link>
      <description>&lt;P&gt;sorry that was a typo on my part. I did include the backslashes in my props.conf file and it didn't work. I'm still getting multiple events grouped into a single Splunk event.&lt;/P&gt;

&lt;P&gt;I edited the props.conf file in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt; because that's what the Splunk doc said to do: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Indexmulti-lineevents"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Indexmulti-lineevents&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Should I be editing it in &lt;CODE&gt;$SPLUNK_HOME/etc/users/admin/search/local&lt;/CODE&gt; instead? &lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 20:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189119#M187130</guid>
      <dc:creator>snandaku</dc:creator>
      <dc:date>2015-05-19T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189120#M187131</link>
      <description>&lt;P&gt;ok, so looks like the line break rule change in props.conf doesn't get applied to events that have already been indexed.  New data coming in are getting split up correctly, so your instructions &lt;EM&gt;did&lt;/EM&gt; work. But the older data that have already been indexed are not getting split up. Is there a way to force splunk to re-index &lt;EM&gt;everything&lt;/EM&gt;?  &lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2015 21:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189120#M187131</guid>
      <dc:creator>snandaku</dc:creator>
      <dc:date>2015-05-19T21:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189121#M187132</link>
      <description>&lt;P&gt;Yes, first you use this to remove the bad data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=xxx | delete
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you do like this:&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/72562/how-to-reindex-data-from-a-forwarder.html"&gt;http://answers.splunk.com/answers/72562/how-to-reindex-data-from-a-forwarder.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 03:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189121#M187132</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-20T03:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189122#M187133</link>
      <description>&lt;P&gt;As reported in other answers you should fix this in your props.conf at index time but if the data is already indexed you can break it as follows. Note you need the new line character after delim=" and can type it using shift-enter.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval raw=_raw
|makemv delim="
" raw 
| mvexpand raw 
| eval _raw=raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any other fields the original event had will now be in all part events. i.e. If line3 had a user field, all 3 lines will have that user field. So you may want to delete them and re-extract for the lines with something like this. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fields - user
| rex "user=\"(?&amp;lt;user&amp;gt;[^\"]+)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Feb 2018 13:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/189122#M187133</guid>
      <dc:creator>bmunson_splunk</dc:creator>
      <dc:date>2018-02-16T13:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/597508#M208023</link>
      <description>&lt;P class="lia-align-justify"&gt;Hi,&lt;/P&gt;&lt;P class="lia-align-justify"&gt;How about a have an csv file, the forwarder should break into multilines, but it didn't. What should i write props.conf&lt;/P&gt;&lt;P class="lia-align-justify"&gt;CSV looklike in 1 event:&lt;/P&gt;&lt;PRE&gt;G2nS32m2gEaFZUrh,UDP,2294,64021328,447952334,511973662,1652264015
xNeJ2gTvj9wAl5Hi,UDP,2294,15902274,180739240,196641514,1652263847&lt;/PRE&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Maybe:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LINE_BREAKER = \\n([\r\n]+)&lt;/PRE&gt;&lt;P&gt;Does it right?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 05:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/597508#M208023</guid>
      <dc:creator>lnn2204</dc:creator>
      <dc:date>2022-05-12T05:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to break multiline event into separate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/597520#M208028</link>
      <description>Please create a new unsolved question, then you will get much easier a solution to it.</description>
      <pubDate>Thu, 12 May 2022 06:41:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-break-multiline-event-into-separate-events/m-p/597520#M208028</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-05-12T06:41:47Z</dc:date>
    </item>
  </channel>
</rss>

