<?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 Event Break: does not work on forwarded log file, works fine on local copy [screenshots included] in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41502#M7709</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I've been absolutely stumped with a problem now for two days. I can't seem to get event breaks working for when a file is forwarded from a server, even though it seems to work with an exact copy of the same file as long as it's on the same machine as the indexer. Could anyone please take a look to see where I went wrong?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample Data:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;(ORD_Area_Date)      INFO(19May13@21:33:12:646) Updated entrydate: SYBRCH&lt;BR /&gt;
(ORD_Area_Date)      INFO(19May13@21:33:12:731) Loading market &lt;BR /&gt;
(ORD_Area_Date)      INFO(19May13@21:33:12:747) Historical  market  not there - use default&lt;BR /&gt;
(ORD_Area_Date)      INFO(19May13@21:33:12:836) Loading current market &lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;I want each event to break at &lt;CODE&gt;(ORD_Area_Date)&lt;/CODE&gt; (this pattern is used for multiple applications, so I cannot hard code to &lt;CODE&gt;ORD_Area_Date&lt;/CODE&gt; - it needs to regex match a set of brackets with some words in the middle.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Machine 1: Forwarder - Unix&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;[monitor:///logs/areaDateService/*.log*]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = tarsan_dev&lt;BR /&gt;
sourcetype = tarsan_dby_HMSf&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Machine 2: Indexer - Windows&lt;/STRONG&gt;&lt;BR /&gt;
props.conf:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;[tarsan_dby_HMSf]&lt;BR /&gt;
BREAK_ONLY_BEFORE = \(([A-Za-z1-9_\s]+))\s&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT = %d%b%y@%H:%M:%S:%f&lt;BR /&gt;
TIME_PREFIX = [A-Z]\(&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Screenshots:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://img94.imageshack.us/img94/3880/datapreview.jpg" target="_blank"&gt;Image 1 - sourcetype stanza used in props.conf above works fine in Data Preview with the local copy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://img835.imageshack.us/img835/5833/splunklocal.jpg" target="_blank"&gt;Image 2 - Event breaking works fine on local copy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://img13.imageshack.us/img13/6388/splunkforwarded.jpg" target="_blank"&gt;Image 3 - Event breaking not working on forwarded logs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Other Notes:&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Image 2 and Image 3 are both from the same Indexer and the same splunk web. However, the local copy is on the 'main' index and the forwarded log is being stored in 'tarsan_dev'.&lt;/LI&gt;
&lt;LI&gt;Events from Image 2 and Image 3 both use and have access to the same sourcetype (tarsan_dby_HMSf). It just doesn't seem to work for forwarded logs.&lt;/LI&gt;
&lt;LI&gt;Events highlighted in red are the same set of events, just one with proper event breaks and one without. Timestamps match.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any help would be greatly appreciated. Please let me know if additional information is required.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:57:05 GMT</pubDate>
    <dc:creator>jonathanho</dc:creator>
    <dc:date>2020-09-28T13:57:05Z</dc:date>
    <item>
      <title>Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41502#M7709</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I've been absolutely stumped with a problem now for two days. I can't seem to get event breaks working for when a file is forwarded from a server, even though it seems to work with an exact copy of the same file as long as it's on the same machine as the indexer. Could anyone please take a look to see where I went wrong?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample Data:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;(ORD_Area_Date)      INFO(19May13@21:33:12:646) Updated entrydate: SYBRCH&lt;BR /&gt;
(ORD_Area_Date)      INFO(19May13@21:33:12:731) Loading market &lt;BR /&gt;
(ORD_Area_Date)      INFO(19May13@21:33:12:747) Historical  market  not there - use default&lt;BR /&gt;
(ORD_Area_Date)      INFO(19May13@21:33:12:836) Loading current market &lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;I want each event to break at &lt;CODE&gt;(ORD_Area_Date)&lt;/CODE&gt; (this pattern is used for multiple applications, so I cannot hard code to &lt;CODE&gt;ORD_Area_Date&lt;/CODE&gt; - it needs to regex match a set of brackets with some words in the middle.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Machine 1: Forwarder - Unix&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;[monitor:///logs/areaDateService/*.log*]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = tarsan_dev&lt;BR /&gt;
sourcetype = tarsan_dby_HMSf&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Machine 2: Indexer - Windows&lt;/STRONG&gt;&lt;BR /&gt;
props.conf:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;[tarsan_dby_HMSf]&lt;BR /&gt;
BREAK_ONLY_BEFORE = \(([A-Za-z1-9_\s]+))\s&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT = %d%b%y@%H:%M:%S:%f&lt;BR /&gt;
TIME_PREFIX = [A-Z]\(&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Screenshots:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://img94.imageshack.us/img94/3880/datapreview.jpg" target="_blank"&gt;Image 1 - sourcetype stanza used in props.conf above works fine in Data Preview with the local copy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://img835.imageshack.us/img835/5833/splunklocal.jpg" target="_blank"&gt;Image 2 - Event breaking works fine on local copy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://img13.imageshack.us/img13/6388/splunkforwarded.jpg" target="_blank"&gt;Image 3 - Event breaking not working on forwarded logs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Other Notes:&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Image 2 and Image 3 are both from the same Indexer and the same splunk web. However, the local copy is on the 'main' index and the forwarded log is being stored in 'tarsan_dev'.&lt;/LI&gt;
&lt;LI&gt;Events from Image 2 and Image 3 both use and have access to the same sourcetype (tarsan_dby_HMSf). It just doesn't seem to work for forwarded logs.&lt;/LI&gt;
&lt;LI&gt;Events highlighted in red are the same set of events, just one with proper event breaks and one without. Timestamps match.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any help would be greatly appreciated. Please let me know if additional information is required.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:57:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41502#M7709</guid>
      <dc:creator>jonathanho</dc:creator>
      <dc:date>2020-09-28T13:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41503#M7710</link>
      <description>&lt;P&gt;Are these all single line events? If so, I would suggest that you set your props accordingly;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tarsan_blah]
SHOULD_LINEMERGE = false
TIME_FORMAT = %d%b%y@%H:%M:%S:%3N
TIME_PREFIX = [A-Z]\(
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;NO_BINARY_CHECK&lt;/CODE&gt; is an inputs-phase related setting, so you could try copying it to the forwarder as well. Although the &lt;CODE&gt;%f&lt;/CODE&gt; seems to work, I haven't seen it in official Splunk docs.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps, &lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 19:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41503#M7710</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-21T19:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41504#M7711</link>
      <description>&lt;P&gt;Hi Kristian,&lt;/P&gt;

&lt;P&gt;Thanks for the suggestion. Unfortunately, I tried that and it didn't work. Even on auto break by timestamp, it still ends up clustering events together.&lt;/P&gt;

&lt;P&gt;The annoying thing is it works fine if I don't try and specify the timestamp format, but it can't parse the date format and gets that wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2013 09:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41504#M7711</guid>
      <dc:creator>jonathanho</dc:creator>
      <dc:date>2013-05-22T09:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41505#M7712</link>
      <description>&lt;P&gt;I got it working in the end, but not through the props.conf. I ended up just adding the regex for the timestamp in to datetime.xml and did not specify a sourcetype in the inputs.conf file.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2013 16:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41505#M7712</guid>
      <dc:creator>jonathanho</dc:creator>
      <dc:date>2013-05-22T16:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41506#M7713</link>
      <description>&lt;P&gt;Well, there might be a good reason for your action, but all events &lt;EM&gt;must&lt;/EM&gt; have a sourcetype - and I fail to see why you should get Splunk to guess it, if you already know what the sourcetype is/should be. &lt;/P&gt;

&lt;P&gt;A lot of things are dependent on sourcetype (field extractions, searches, eventtypes etc).&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2013 21:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41506#M7713</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-22T21:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41507#M7714</link>
      <description>&lt;P&gt;Hi Jonathon, &lt;/P&gt;

&lt;P&gt;Is the forwarder a Universal Forwarder?&lt;/P&gt;

&lt;P&gt;If it's not, line breaking happens on the forwarder, if it is, line breaking happens on the indexer.&lt;/P&gt;

&lt;P&gt;I usually do this with a LINE_BREAKER and SHOULD_LINEMERGE being false.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tarsan_dby_HMSf]
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)\([^\) ]+\)\S+\w+\(\d+
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:59:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41507#M7714</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2020-09-28T13:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41508#M7715</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Yes, the forwarding machine is using a Universal Forwarder. I have the props.conf on the Indexing machine, with the inputs.conf on the forwarder specifying the sourcetype.&lt;/P&gt;

&lt;P&gt;I tried using the stanza above in the Data Preview, but it was unable to break up the events properly.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Jonathan&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 10:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41508#M7715</guid>
      <dc:creator>jonathanho</dc:creator>
      <dc:date>2013-05-29T10:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41509#M7716</link>
      <description>&lt;P&gt;dart, jonathon, it seems that the regex has an 'S' instead of 's', which would cause it to fail, i.e. you're trying to match non-whitespace characters instead of whitespace (between the &lt;CODE&gt;(ORD_Area_Date)&lt;/CODE&gt; and &lt;CODE&gt;INFO&lt;/CODE&gt;.)&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 12:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41509#M7716</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-29T12:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Event Break: does not work on forwarded log file, works fine on local copy [screenshots included]</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41510#M7717</link>
      <description>&lt;P&gt;That's correct, it should be &lt;CODE&gt;\s&lt;/CODE&gt; - thanks Kristian!&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2013 15:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-Break-does-not-work-on-forwarded-log-file-works-fine-on/m-p/41510#M7717</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2013-05-30T15:15:44Z</dc:date>
    </item>
  </channel>
</rss>

