<?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 does Splunk handle end of file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-handle-end-of-file/m-p/454764#M78708</link>
    <description>&lt;P&gt;Perfect, @richgalloway ! My mistake was to expect these settings in props.conf. I did not realize inputs.conf is much more logical place for such configuration, that's why I did not find it myself. Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 09:09:40 GMT</pubDate>
    <dc:creator>eregon</dc:creator>
    <dc:date>2019-08-21T09:09:40Z</dc:date>
    <item>
      <title>How does Splunk handle end of file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-handle-end-of-file/m-p/454762#M78706</link>
      <description>&lt;P&gt;Good evening fellow Splunkthiasts, can anyone explain in detail, how Splunk breaks the events when it finds the end of file with no EOL (or whatever LINE_BREAKER is set to)? Specifically I am concerned whether and how it recognizes the difference between "there is nothing more to read, the last event can be indexed as is" and "the last event has not been completely written yet, indexing should wait a bit more".&lt;/P&gt;

&lt;P&gt;After some attempts and failures it seems to me that each event data is being read into some kind of buffer and when EOF with no EOL is reached, Splunk waits up to 10 seconds for more data coming in. If there is no further input within this time-limit, event is considered to be complete as it is stored in the buffer and is pushed to further processing.&lt;/P&gt;

&lt;P&gt;Example: this Bash one-liner writes a single line to the file, but Splunk ingests two events, although there is no newline character:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;(echo -n $(date '+%Y-%m-%d %H:%M:%S' "This is a log record from very sssssllloooo"; sleep 11s; echo "oooooow source.") &amp;gt; monitoredFile.log&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Note: I am getting the same behavior when I redirect the one-liner's output to TCP input instead of monitored file.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I have two questions then:&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Is my understanding of the situation correct?&lt;/LI&gt;
&lt;LI&gt;If it is, can the 10s delay be adjusted? How? Can it be done for some specific sourcetype or host only?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 16:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-handle-end-of-file/m-p/454762#M78706</guid>
      <dc:creator>eregon</dc:creator>
      <dc:date>2019-08-20T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk handle end of file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-handle-end-of-file/m-p/454763#M78707</link>
      <description>&lt;OL&gt;
&lt;LI&gt;I believe you are correct.  Your testing would seem confirm my expectations.&lt;/LI&gt;
&lt;LI&gt;Check out the &lt;CODE&gt;time_before_close&lt;/CODE&gt; and &lt;CODE&gt;multiline_event_extra_waittime&lt;/CODE&gt; settings in inputs.conf.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 20 Aug 2019 19:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-handle-end-of-file/m-p/454763#M78707</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-20T19:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How does Splunk handle end of file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-handle-end-of-file/m-p/454764#M78708</link>
      <description>&lt;P&gt;Perfect, @richgalloway ! My mistake was to expect these settings in props.conf. I did not realize inputs.conf is much more logical place for such configuration, that's why I did not find it myself. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 09:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-does-Splunk-handle-end-of-file/m-p/454764#M78708</guid>
      <dc:creator>eregon</dc:creator>
      <dc:date>2019-08-21T09:09:40Z</dc:date>
    </item>
  </channel>
</rss>

