<?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: Splitting one event into multiple events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106409#M183253</link>
    <description>&lt;P&gt;Aaaah okay. I got it working with: MUST_BREAK_AFTER = ^\w+\s+\w+ Does that seem reasonable too? Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:22:14 GMT</pubDate>
    <dc:creator>Branden</dc:creator>
    <dc:date>2020-09-28T09:22:14Z</dc:date>
    <item>
      <title>Splitting one event into multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106407#M183251</link>
      <description>&lt;P&gt;This should be a simple question. In fact, I've succeeded in doing this before, but I no longer have that app and I can't recall the solution. &lt;/P&gt;

&lt;P&gt;I run a script that outputs something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Queue          Status
-----          ------
MTAB208A       READY
MTAB310C       READY
MTAB318A       READY
MTAB318B       READY
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want Splunk to alert me when the "READY" status changes to "DOWN" (or something other than "READY"). &lt;/P&gt;

&lt;P&gt;So I wrote a script that uses sed to remove the first two lines, so the output becomes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MTAB208A       READY
MTAB310C       READY
MTAB318A       READY
MTAB318B       READY
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want Splunk to extract two fields: queue and status. This is easy enough except I want each of those queues to be its own event. Instead, I get one big event containing all four queues. &lt;/P&gt;

&lt;P&gt;How do I get each of those queues to be its own event? I know there's an easy way to do this but I'm having a mind block here. (I suppose the other option is to do away with the sed trimming and use multikv, but I think that might over-complicate this.)&lt;/P&gt;

&lt;P&gt;I tried using LINE_BREAKER in props.conf but that didn't do anything:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ^\w+\s+\w+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Update: Figured it out! I needed to use "MUST_BREAK_AFTER". Oh yeah, and bounce Splunk after updating props.conf.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2010 23:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106407#M183251</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2010-12-17T23:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting one event into multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106408#M183252</link>
      <description>&lt;P&gt;You should split the events at index time by specifying something like this in your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
SHOULD_LINEMERGE = false
DATETIME_CONFIG = current
LINE_BREAKER=([\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Dec 2010 00:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106408#M183252</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-12-18T00:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting one event into multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106409#M183253</link>
      <description>&lt;P&gt;Aaaah okay. I got it working with: MUST_BREAK_AFTER = ^\w+\s+\w+ Does that seem reasonable too? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106409#M183253</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2020-09-28T09:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting one event into multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106410#M183254</link>
      <description>&lt;P&gt;I tried it after changing /opt/splunkforwarder/etc/apps/Metro_TA_iibcorp/local/props.conf but it fails again to split the EventType.&lt;/P&gt;

&lt;P&gt;[metro:iibcorpqmon]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
DATETIME_CONFIG = current&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;/P&gt;

&lt;P&gt;Is the props .conf in the correct place?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106410#M183254</guid>
      <dc:creator>AmitKapila</dc:creator>
      <dc:date>2020-09-29T14:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting one event into multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106411#M183255</link>
      <description>&lt;P&gt;@AmitKapila - This question is quite old and it may not garner the type of attention and activity that you seek. I would suggest posting a new question. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 15:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-one-event-into-multiple-events/m-p/106411#M183255</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-05-16T15:03:42Z</dc:date>
    </item>
  </channel>
</rss>

