<?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 Separating merged events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Separating-merged-events/m-p/23387#M4175</link>
    <description>&lt;P&gt;I'm trying to develop a regex to separate merged events from a log. Here's my stanza in props.conf:&lt;/P&gt;

&lt;P&gt;[source=c:\temp\nagios*-perfdata]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^DATATYPE:: &lt;/P&gt;

&lt;P&gt;I've tried various regex's for BREAK_ONLY_BEFORE, all of which work in my regex tester.&lt;BR /&gt;
Don't think I really need LINE_BRAKER, but have tried with and without.&lt;BR /&gt;
Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 31 Jul 2010 04:52:26 GMT</pubDate>
    <dc:creator>rgcox1</dc:creator>
    <dc:date>2010-07-31T04:52:26Z</dc:date>
    <item>
      <title>Separating merged events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separating-merged-events/m-p/23387#M4175</link>
      <description>&lt;P&gt;I'm trying to develop a regex to separate merged events from a log. Here's my stanza in props.conf:&lt;/P&gt;

&lt;P&gt;[source=c:\temp\nagios*-perfdata]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^DATATYPE:: &lt;/P&gt;

&lt;P&gt;I've tried various regex's for BREAK_ONLY_BEFORE, all of which work in my regex tester.&lt;BR /&gt;
Don't think I really need LINE_BRAKER, but have tried with and without.&lt;BR /&gt;
Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2010 04:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separating-merged-events/m-p/23387#M4175</guid>
      <dc:creator>rgcox1</dc:creator>
      <dc:date>2010-07-31T04:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Separating merged events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separating-merged-events/m-p/23388#M4176</link>
      <description>&lt;UL&gt;
&lt;LI&gt;It's not &lt;CODE&gt;[source=path]&lt;/CODE&gt;, it should be &lt;CODE&gt;[source::path]&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;Furthermore, &lt;CODE&gt;\&lt;/CODE&gt; (backslash) in paths must be escaped, so: &lt;CODE&gt;[source::c:\\temp\\nagios-perfdata]&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;And for Windows file paths, it's probably a good idea to make the source match case-insensitive, so: &lt;CODE&gt;[source::(?i)c:\\temp\nagios*-perfdata]&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;You can't add comments in Splunk config files with a &lt;CODE&gt;#&lt;/CODE&gt; &lt;EM&gt;except&lt;/EM&gt; at the beginning of a line, i.e., if the comment with &lt;CODE&gt;# tried with and without...&lt;/CODE&gt; are actually in your config file on the same line as &lt;CODE&gt;LINE_BREAKER = ([\r\n]+)&lt;/CODE&gt;, what you think is a comment is taken as part of the line breaker regex.&lt;/LI&gt;
&lt;LI&gt;Neither of these settings is necessary normally as it looks like you're trying to set them to the default values in Splunk anyway.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 31 Jul 2010 05:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separating-merged-events/m-p/23388#M4176</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-31T05:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Separating merged events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separating-merged-events/m-p/23389#M4177</link>
      <description>&lt;P&gt;Thanks. That got it working on my test instance on Windows, so I  moved it to the production Linux box and it's working great!&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2010 05:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separating-merged-events/m-p/23389#M4177</guid>
      <dc:creator>rgcox1</dc:creator>
      <dc:date>2010-07-31T05:30:24Z</dc:date>
    </item>
  </channel>
</rss>

