<?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 can I break events in my search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431748#M168400</link>
    <description>&lt;P&gt;Make sure you're setting the correct conf in the right location:&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 20:39:02 GMT</pubDate>
    <dc:creator>dpanych</dc:creator>
    <dc:date>2018-07-11T20:39:02Z</dc:date>
    <item>
      <title>How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431741#M168393</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Trying to break events and can't figure this one out.  I receive a bunch of events in a single line, I want to break them using a pattern but it's not working for me. I'm using the Add data screen.  Events should break when encountering &lt;CODE&gt;&amp;lt;162&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I've tried BREAK_ONLY_BEFORE, LINE_BREAKER - nothing makes the event break. What am I doing wrong?&lt;/P&gt;

&lt;P&gt;Sample of the log below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;162&amp;gt;Mar 11 21:45:03 MACHINE CEF:0|PowerTech|Interact|3.1|TCA0001|The bytestream file *N/*N /Help Systems/Robot SCHEDULE ENTERPRISE/tmp/s7472_6859175.sz authority has been changed for user profile *PUBLIC.|2|src=X.X.X.X dst=0.0.0.0 msg=TYPE:JRN CLS:AUD JJOB:ENTSERVER1 JUSER:RBTENTUSR JNBR:171392 PGM:QLESPI OBJECT: LIBRARY: MEMBER: DETAIL:A *N *N *STMF *PUBLIC    Y   Y Y Y Y     RPL        0000 00000 * * *NA *NA&amp;lt;162&amp;gt;Mar 11 21:45:03 MACHINE CEF:0|PowerTech|Interact|3.1|TCA0001|The bytestream file *N/*N /Help Systems/Robot SCHEDULE ENTERPRISE/tmp/s7472_6859175.sz authority has been changed for user profile RBTENTUSR.|2|src=X.X.X.X dst=0.0.0.0 msg=TYPE:JRN CLS:AUD JJOB:ENTSERVER1 JUSER:RBTENTUSR JNBR:171392 PGM:QLESPI OBJECT: LIBRARY: MEMBER: DETAIL:A *N *N *STMF RBTENTUSR  Y Y Y   Y Y Y Y   Y Y RPL        0000 00000 * * *NA *NA
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431741#M168393</guid>
      <dc:creator>patouellet</dc:creator>
      <dc:date>2020-09-29T20:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431742#M168394</link>
      <description>&lt;P&gt;Hi patouellet,&lt;/P&gt;

&lt;P&gt;try this &lt;CODE&gt;props.conf&lt;/CODE&gt; on the parsing Splunk instance, and restart Splunk after the change:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourcetypeNameHere]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
LINE_BREAKER=([\r\n]+)\&amp;lt;162\&amp;gt;|\s\*NA\s\*NA(.*)\&amp;lt;
TIME_PREFIX=\&amp;lt;162\&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Took this to slack and got more details, like it is a TCP input and the events actually do not contain &lt;CODE&gt;*NA&lt;/CODE&gt;. After some tries this line breaker worked just fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; LINE_BREAKER=[\*\.\r\n\)\d]+()\&amp;lt;162\&amp;gt;|^()\&amp;lt;162\&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The response of the OP was awesome, and I want to share it:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://image.ibb.co/i9kFZ8/Screen_Shot_2018_07_12_at_8_48_07_AM.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 21:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431742#M168394</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-07-10T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431743#M168395</link>
      <description>&lt;P&gt;I appreciate the help. But it's not working for me. I still get most events wrapped in Splunk as a single event. I've done exactly what you suggested - no luck.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 16:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431743#M168395</guid>
      <dc:creator>patouellet</dc:creator>
      <dc:date>2018-07-11T16:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431744#M168396</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;take a file that contains the events, use the &lt;CODE&gt;Add Data page&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Howdoyouwanttoadddata"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Howdoyouwanttoadddata&lt;/A&gt; and add the file. On the next screen use the advanced settings and add all the options from the above &lt;CODE&gt;props.conf&lt;/CODE&gt; click apply and you see it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;BR /&gt;
Reasons why it does not work for you:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;You did not apply the &lt;CODE&gt;props.conf&lt;/CODE&gt; on the parsing Splunk instance, that is either a heavy weight forwarder or an indexer&lt;/LI&gt;
&lt;LI&gt;You did not restart Splunk after applying the &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;the sourcetype in the the &lt;CODE&gt;props.conf&lt;/CODE&gt; does not match your sourcetype, eq typo? what for Cases in the sourcetype!&lt;/LI&gt;
&lt;LI&gt;the &lt;CODE&gt;props.conf&lt;/CODE&gt; will only work on new events&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 19:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431744#M168396</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-07-11T19:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431745#M168397</link>
      <description>&lt;P&gt;Tried all of that - not working for me. It just doesn't split all the events like I thought it would. I still see multiple &amp;lt;162&amp;gt; tag inside a single Splunk event. &lt;/P&gt;

&lt;P&gt;It's the first time I'm stuck like this. I'm usually pretty good at this and been using the tool for 2 years. &lt;/P&gt;

&lt;P&gt;Have you tried with Add Data page with the sample data in my first post? Is it working for you?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431745#M168397</guid>
      <dc:creator>patouellet</dc:creator>
      <dc:date>2018-07-11T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431746#M168398</link>
      <description>&lt;P&gt;Yep, used your provided examples, copied multiple lines into a file and used the &lt;CODE&gt;Add Data page&lt;/CODE&gt; to create the &lt;CODE&gt;props.conf&lt;/CODE&gt; options.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431746#M168398</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-07-11T20:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431747#M168399</link>
      <description>&lt;P&gt;Ok good. You mentionned multiple lines - make sure there's no LF or CR anywhere - what if all these multiple "lines" are just one big mess of characters, just one big line with multiple &lt;CODE&gt;&amp;lt;162&amp;gt;&lt;/CODE&gt; - is it working then?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431747#M168399</guid>
      <dc:creator>patouellet</dc:creator>
      <dc:date>2018-07-11T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break events in my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431748#M168400</link>
      <description>&lt;P&gt;Make sure you're setting the correct conf in the right location:&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-break-events-in-my-search/m-p/431748#M168400</guid>
      <dc:creator>dpanych</dc:creator>
      <dc:date>2018-07-11T20:39:02Z</dc:date>
    </item>
  </channel>
</rss>

