<?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 to split a file into events based on multiple criteria? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89756#M18628</link>
    <description>&lt;P&gt;Hello, this worked!! Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2011 14:41:44 GMT</pubDate>
    <dc:creator>Hazel</dc:creator>
    <dc:date>2011-05-03T14:41:44Z</dc:date>
    <item>
      <title>How to split a file into events based on multiple criteria?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89752#M18624</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have a log file that has two different types of events in it.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Events that look like this
&lt;PRE&gt; &amp;lt;logtime="2011-04-25T23:05:16.389" level=INFO file="file1.C" line="280"&amp;gt;
&amp;lt;![CDATA[ 
Submitted xys
]]&amp;gt;&amp;lt;/log&amp;gt; &lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;Events that look like this
&lt;PRE&gt; 26-Apr-2011 09:44:52; INFO.... &lt;/PRE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I want my splunk props.conf to split events every time it sees either of these, but I can only get it to work with one or the others.&lt;/P&gt;

&lt;P&gt;If I stick with the default and have no props.conf then it splits events based on 2. as this is the standard DATETIME event.  &lt;/P&gt;

&lt;P&gt;I know I can also use a props.conf to get it to break on ^&amp;lt;log, but I can't get it to do both at the same time.&lt;/P&gt;

&lt;P&gt;Can anyone help?&lt;/P&gt;

&lt;P&gt;For example, I thought something like this below (I've hard coded the 26-Apr just to get this scenario right and then i can put it as something more generic for any date)&lt;/P&gt;

&lt;PRE&gt;
[source::.../test.tester2] 
CHECK_METHOD = entire_md5
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = (^&amp;lt;log|^26-Apr)
&lt;/PRE&gt;

&lt;P&gt;But this is only picking up the first scenario and does not split into a new event when it sees something starting with 26-Apr.  Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Hazel&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2011 11:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89752#M18624</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2011-04-27T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a file into events based on multiple criteria?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89753#M18625</link>
      <description>&lt;P&gt;Have you tried a LINE_BREAKER that will match either record:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...test.tester2]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(&amp;lt;logtime|\d{2}-\w{3}-\d{4}\s+\d{2}:\d{2}:\d{2};)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2011 16:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89753#M18625</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-04-27T16:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a file into events based on multiple criteria?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89754#M18626</link>
      <description>&lt;P&gt;Hello.  I added this in, and now when a file comes through that matches this, the splunkd running the props.conf (on my indexer as I am using light forwarders), crashes out.  I have confirmed this as splunkd will be fine and then as soon as I send through a file that matches to perform the above props.conf, splunkd crashes immediately....&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89754#M18626</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2011-04-28T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a file into events based on multiple criteria?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89755#M18627</link>
      <description>&lt;P&gt;Interesting...try the updated line breaker above...&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89755#M18627</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-04-28T17:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a file into events based on multiple criteria?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89756#M18628</link>
      <description>&lt;P&gt;Hello, this worked!! Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 14:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-a-file-into-events-based-on-multiple-criteria/m-p/89756#M18628</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2011-05-03T14:41:44Z</dc:date>
    </item>
  </channel>
</rss>

