<?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: Break Events from a single Event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395925#M168803</link>
    <description>&lt;P&gt;You need to apply base configs on your indexer(s) to break the events up &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER=\[catalina-exec\-\d+\]
SHOULD_LINE_MERGE=false
TRUNCATE=1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart splunkd on the indexer(s) after adding this&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2018 21:36:07 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2018-06-19T21:36:07Z</dc:date>
    <item>
      <title>Break Events from a single Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395921#M168799</link>
      <description>&lt;P&gt;Hi, I have this weird logging from one of the application where it is logging multiple users in a single event with a different timestamp and a thread name. I am actually trying to find out number of logins per day but how do I extract this data of single events consist of multiple events. &lt;BR /&gt;
Example - below is a single event contains the data for 2 users. How do I break it probably using the timestamp or threadname?&lt;/P&gt;

&lt;P&gt;[catalina-exec-86] &lt;STRONG&gt;19Jun18-11:31:00&lt;/STRONG&gt; INFO (test.java:31)-{"id":null,"clientip":"1.16.9.13","currentRuntimeId":"0","currentUserId":"0","currentUsername":"&lt;A href="mailto:test@gmail.com"&gt;test@gmail.com&lt;/A&gt;","unixTimestamp":"988","verb":"POST","request":"/test/start","response":"0","bytes":null,"httpversion":null,"referrer":"&lt;A href="https://test%22,%22uaString%22:%22Mozilla/5.0"&gt;https://test","uaString":"Mozilla/5.0&lt;/A&gt; (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36","&lt;STRONG&gt;threadName":"thread12"&lt;/STRONG&gt;,"actionName":"test","hasEnriched":"false","country":"test","enrichment.protocol":"test","enrichment.username":"&lt;A href="mailto:test@gmail.com"&gt;test@gmail.com&lt;/A&gt;"} &lt;BR /&gt;
[catalina-exec-38] &lt;STRONG&gt;19Jun18-11:31:01&lt;/STRONG&gt; INFO (test.java:31)-{"id":null,"clientip":"12.1.96.18","currentRuntimeId":"0","currentUserId":"0","currentUsername":"&lt;A href="mailto:test123@abc.com"&gt;test123@abc.com&lt;/A&gt;","unixTimestamp":"099","verb":"POST","request":"/test/start","response":"0","bytes":null,"httpversion":null,"referrer":"&lt;A href="https://test%22,%22uaString%22:%22Mozilla/5.0"&gt;https://test","uaString":"Mozilla/5.0&lt;/A&gt; (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79",&lt;STRONG&gt;"threadName":"thread24"&lt;/STRONG&gt;,"actionName":"test","hasEnriched":"false","country":"test","enrichment.protocol":"test","enrichment.username":"&lt;A href="mailto:test123@abc.com"&gt;test123@abc.com&lt;/A&gt;"} &lt;/P&gt;

&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 10:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395921#M168799</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2018-06-19T10:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Break Events from a single Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395922#M168800</link>
      <description>&lt;P&gt;You need to line break the events into individual events. This can be done either on HF or on indexers. &lt;BR /&gt;
Below is the document explaining how to enable event line breaking on Splunk,&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/Data/Configureeventlinebreaking" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.1/Data/Configureeventlinebreaking&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Basically Splunk auto line breaks based on timestamp value. But in your case as event doesn't start with timestamp, you need to explicitly specify line breaking configuration. &lt;BR /&gt;
You can try below configuration,&lt;BR /&gt;
props.conf&lt;BR /&gt;
[]&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^[catalina-exec-&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395922#M168800</guid>
      <dc:creator>rteja9</dc:creator>
      <dc:date>2020-09-29T20:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Break Events from a single Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395923#M168801</link>
      <description>&lt;P&gt;To confirm: I see two events (starting with [catalina-exec-nn]). Are you saying your log source does not have a carriage return/new line between the two?&lt;/P&gt;

&lt;P&gt;This should do what you need if that's the case:&lt;BR /&gt;
BREAK_ONLY_BEFORE = [catalina-exec-\d+]&lt;BR /&gt;
TIME_FORMAT = %d%b%y-%H:%M:%S&lt;BR /&gt;
TIME_PREFIX = [catalina-exec-\d+]\s&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395923#M168801</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2020-09-29T20:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Break Events from a single Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395924#M168802</link>
      <description>&lt;P&gt;You should use &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; over &lt;CODE&gt;BREAK_ONLY_BEFORE&lt;/CODE&gt; and should stay away from &lt;CODE&gt;SHOULD_LINEMERGE=true&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 21:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395924#M168802</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-06-19T21:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Break Events from a single Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395925#M168803</link>
      <description>&lt;P&gt;You need to apply base configs on your indexer(s) to break the events up &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER=\[catalina-exec\-\d+\]
SHOULD_LINE_MERGE=false
TRUNCATE=1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart splunkd on the indexer(s) after adding this&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 21:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395925#M168803</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-06-19T21:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Break Events from a single Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395926#M168804</link>
      <description>&lt;P&gt;Yes that worked perfectly. Thank you very much for the response&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:07:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395926#M168804</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2018-06-21T11:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Break Events from a single Event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395927#M168805</link>
      <description>&lt;P&gt;Foolish...&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 14:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Break-Events-from-a-single-Event/m-p/395927#M168805</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-06-21T14:59:26Z</dc:date>
    </item>
  </channel>
</rss>

