<?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 Multiline Event in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84186#M7316</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;I am new to Splunk but have questions which people should have experienced:  &lt;/P&gt;

&lt;P&gt;I am currently setting up a POC environment in multi DC environment, env is simple right now:  &lt;/P&gt;

&lt;P&gt;In one DC we have a Single instance of Splunk which contains (i think every component), we have a universal forwarder system looking at 5 different log files of (same type)  &lt;/P&gt;

&lt;P&gt;Till now i am able to go to Universal Forwarder - :\Program Files\SplunkUniversalForwarder\etc\system\local\ and made an entry for - crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;&lt;BR /&gt;
eg:&lt;BR /&gt;&lt;BR /&gt;
[monitor://D:\Notfier.out]&lt;BR /&gt;&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;  &lt;/SOURCE&gt;&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;[monitor://D:\Notfier2.out]&lt;BR /&gt;&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;  &lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;This creates 2 sources in Splunk (server) and i see all logs are directed - so i think at this point it is working fine.&lt;/P&gt;

&lt;P&gt;Now when we are getting events they are multiline and splubnk is confused how to split them, after reading i figured out that i need props.conf to learn splunk how to split each event&lt;/P&gt;

&lt;P&gt;Sample event i am getting:&lt;/P&gt;

&lt;P&gt;Subject: CR&lt;BR /&gt;&lt;BR /&gt;
%customer_name=Xys&lt;BR /&gt;&lt;BR /&gt;
%zrepby=xys&lt;BR /&gt;&lt;BR /&gt;
%group=ABC.DOC&lt;BR /&gt;
%priority=3&lt;BR /&gt;&lt;BR /&gt;
%summary= Alert: 10/05/2013 16:01:17 A CRITICAL alarm has occurred on Host Abcs.Domain&lt;BR /&gt;&lt;BR /&gt;
%CATEGORY=Mon.Xyz.Abc&lt;BR /&gt;&lt;BR /&gt;
%DESCRIPTION=Alert:  DEVICE HAS STOPPED RESPONDING TO POLLS - CONDITION PERSISTS FOR 10 MINUTES SYMPTOMS: Device has stopped responding to polls. PROBABLE CAUSES: 1) Device Hardware Failure. 2)&lt;BR /&gt;&lt;BR /&gt;
Status:  CRITICAL&lt;BR /&gt;&lt;BR /&gt;
Customer:&lt;BR /&gt;&lt;BR /&gt;
Device Type:  Host&lt;BR /&gt;&lt;BR /&gt;
Primary Engineer:&lt;BR /&gt;&lt;BR /&gt;
*** From UpdateScript ***  &lt;/P&gt;

&lt;P&gt;I created Props.conf on Splunk Server ( i created this MyApp to customize dashobaords and views)&lt;BR /&gt;
D:\Splunkv5\etc\apps\MyApp\local\props.conf  &lt;/P&gt;

&lt;P&gt;[monitor://D:\Notifier.OUT]&lt;BR /&gt;&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;&lt;BR /&gt;
LINE_BREAKER = ^Subject: (.*)$  &lt;/P&gt;

&lt;P&gt;I was thinking to break each event before Line "Subject: CR" starts.  &lt;/P&gt;

&lt;P&gt;Unfortunately my events are not breaking and i have no idea what i am missing.  &lt;/P&gt;

&lt;P&gt;Any help will be appreciated.  &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Nik&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:54:20 GMT</pubDate>
    <dc:creator>nikhilmehra79</dc:creator>
    <dc:date>2020-09-28T14:54:20Z</dc:date>
    <item>
      <title>Multiline Event</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84186#M7316</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;I am new to Splunk but have questions which people should have experienced:  &lt;/P&gt;

&lt;P&gt;I am currently setting up a POC environment in multi DC environment, env is simple right now:  &lt;/P&gt;

&lt;P&gt;In one DC we have a Single instance of Splunk which contains (i think every component), we have a universal forwarder system looking at 5 different log files of (same type)  &lt;/P&gt;

&lt;P&gt;Till now i am able to go to Universal Forwarder - :\Program Files\SplunkUniversalForwarder\etc\system\local\ and made an entry for - crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;&lt;BR /&gt;
eg:&lt;BR /&gt;&lt;BR /&gt;
[monitor://D:\Notfier.out]&lt;BR /&gt;&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;  &lt;/SOURCE&gt;&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;[monitor://D:\Notfier2.out]&lt;BR /&gt;&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;  &lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;This creates 2 sources in Splunk (server) and i see all logs are directed - so i think at this point it is working fine.&lt;/P&gt;

&lt;P&gt;Now when we are getting events they are multiline and splubnk is confused how to split them, after reading i figured out that i need props.conf to learn splunk how to split each event&lt;/P&gt;

&lt;P&gt;Sample event i am getting:&lt;/P&gt;

&lt;P&gt;Subject: CR&lt;BR /&gt;&lt;BR /&gt;
%customer_name=Xys&lt;BR /&gt;&lt;BR /&gt;
%zrepby=xys&lt;BR /&gt;&lt;BR /&gt;
%group=ABC.DOC&lt;BR /&gt;
%priority=3&lt;BR /&gt;&lt;BR /&gt;
%summary= Alert: 10/05/2013 16:01:17 A CRITICAL alarm has occurred on Host Abcs.Domain&lt;BR /&gt;&lt;BR /&gt;
%CATEGORY=Mon.Xyz.Abc&lt;BR /&gt;&lt;BR /&gt;
%DESCRIPTION=Alert:  DEVICE HAS STOPPED RESPONDING TO POLLS - CONDITION PERSISTS FOR 10 MINUTES SYMPTOMS: Device has stopped responding to polls. PROBABLE CAUSES: 1) Device Hardware Failure. 2)&lt;BR /&gt;&lt;BR /&gt;
Status:  CRITICAL&lt;BR /&gt;&lt;BR /&gt;
Customer:&lt;BR /&gt;&lt;BR /&gt;
Device Type:  Host&lt;BR /&gt;&lt;BR /&gt;
Primary Engineer:&lt;BR /&gt;&lt;BR /&gt;
*** From UpdateScript ***  &lt;/P&gt;

&lt;P&gt;I created Props.conf on Splunk Server ( i created this MyApp to customize dashobaords and views)&lt;BR /&gt;
D:\Splunkv5\etc\apps\MyApp\local\props.conf  &lt;/P&gt;

&lt;P&gt;[monitor://D:\Notifier.OUT]&lt;BR /&gt;&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;&lt;BR /&gt;
LINE_BREAKER = ^Subject: (.*)$  &lt;/P&gt;

&lt;P&gt;I was thinking to break each event before Line "Subject: CR" starts.  &lt;/P&gt;

&lt;P&gt;Unfortunately my events are not breaking and i have no idea what i am missing.  &lt;/P&gt;

&lt;P&gt;Any help will be appreciated.  &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Nik&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84186#M7316</guid>
      <dc:creator>nikhilmehra79</dc:creator>
      <dc:date>2020-09-28T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84187#M7317</link>
      <description>&lt;P&gt;Good try, but the important thing to remember is that &lt;CODE&gt;^&lt;/CODE&gt; in regular expression refers to the beginning of the string. This is irrelevant and never set because you are looking at a whole stream of bytes. In other words &lt;CODE&gt;^&lt;/CODE&gt; only works after lines have been broken, so you can't use it to break lines. You should use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = ([\n\r]+)(?=Subject:)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, it's not clear to me why you're using &lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2013 23:40:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84187#M7317</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-10-05T23:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84188#M7318</link>
      <description>&lt;P&gt;Hi Thanks.  "Also, it's not clear to me why you're using crcSalt = &lt;SOURCE&gt;." - reason why i am using it is because we have 5  - log files which i am reading "Notifier.OUT" "NOTIFIER1.OUT" to 5...they all are having content different but when i tried installing universal installer on server where i have these log files the universal forwarder only read "Notifier.OUT" and not rest 4, when i did more reserach in log files it refered that Splunk Forwarder is not reading rest of 4 log files and will need CRC Salt beacaue apparently few lines at top of log files are same - (possible may be header of log files) and splunk do not index complete log files to see if one log file is unique vs another. Hence i did following configuration on Universal Forwarded (source server for these log files) &lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;[monitor://D:Notfier.out]&lt;BR /&gt;&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;  &lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;[monitor://D:Notfier2.out]&lt;BR /&gt;&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;  &lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;Let me know if you think i am doing something stupid here....Now, going back to problem of splitting (since we have a universal forwarder and Splunk server only setup). I added your lines at props.conf at Splunk server  &lt;/P&gt;

&lt;P&gt;Here is what i have in props.conf   :&lt;BR /&gt;&lt;BR /&gt;
[My Alert]&lt;BR /&gt;&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+)(?=Subject:) &lt;/P&gt;

&lt;P&gt;The path of my props.conf is under a custom application on Splunk Server (not universal forwarder) :&lt;BR /&gt;
D:\Splunkv5\etc\apps\MyApp\local&lt;BR /&gt;&lt;BR /&gt;
is this the right path....do i need to put this somewhere else?&lt;/P&gt;

&lt;P&gt;The events are still not splitting at before "Subject: CR".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84188#M7318</guid>
      <dc:creator>nikhilmehra79</dc:creator>
      <dc:date>2020-09-28T14:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84189#M7319</link>
      <description>&lt;P&gt;this props.conf must be changed in your indexer&lt;BR /&gt;
and make sure you have the same sourcetype used in this stanza which you have used in your inputs.conf of the forwarder&lt;/P&gt;

&lt;P&gt;your inputs.conf (forwarder)&lt;/P&gt;

&lt;P&gt;[monitor://D:Notfier.out] &lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;
sourcetype=abc&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;[monitor://D:Notfier2.out]&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;
sourcetype=abc&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;props.conf (indexer)&lt;/P&gt;

&lt;P&gt;[abc]&lt;BR /&gt;&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
LINE_BREAKER = ([\n\r]+)(?=Subject:)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Multiline-Event/m-p/84189#M7319</guid>
      <dc:creator>luv</dc:creator>
      <dc:date>2020-09-28T15:16:51Z</dc:date>
    </item>
  </channel>
</rss>

