<?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 Is there a way to delay splunk universal forwarder from monitoring specific files? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489741#M83723</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have an issue monitoring os_metrics logs where the log entries are generated from a Windows command wmic and written to a file under this path  &lt;CODE&gt;D:\catmstarFiles\systems\main\logs\os_metrics*.log&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The issue is that events are distorted even after placing the props (see below) in our heavy forwarder and search head cluster. The same set of files are read correctly if we are coping it to test server and monitoring it from there, however, in real-time the events are not breaking correctly as expected.&lt;/P&gt;

&lt;P&gt;So, just wanted to know if there is an attribute that can be used in inputs.conf to reduce uf file reading/monitoring time? or Is it something to be done at source end to delay writing files to this particular path? &lt;BR /&gt;
Can anyone please advise, if it's something to be done at source end I will then reach out to the concerned team and get it discussed. Thanks in advance&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
CHARSET=AUTO
BREAK_ONLY_BEFORE=\w+\s+\d+\/\d+\/\d+\s+\d+:\d+:\d+.\d+
disabled=false
TIME_PREFIX=\w+\s
TIME_FORMAT=%m/%d/%Y %H:%M:%S.%N 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:04:13 GMT</pubDate>
    <dc:creator>swamysanjanaput</dc:creator>
    <dc:date>2020-09-30T03:04:13Z</dc:date>
    <item>
      <title>Is there a way to delay splunk universal forwarder from monitoring specific files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489741#M83723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have an issue monitoring os_metrics logs where the log entries are generated from a Windows command wmic and written to a file under this path  &lt;CODE&gt;D:\catmstarFiles\systems\main\logs\os_metrics*.log&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The issue is that events are distorted even after placing the props (see below) in our heavy forwarder and search head cluster. The same set of files are read correctly if we are coping it to test server and monitoring it from there, however, in real-time the events are not breaking correctly as expected.&lt;/P&gt;

&lt;P&gt;So, just wanted to know if there is an attribute that can be used in inputs.conf to reduce uf file reading/monitoring time? or Is it something to be done at source end to delay writing files to this particular path? &lt;BR /&gt;
Can anyone please advise, if it's something to be done at source end I will then reach out to the concerned team and get it discussed. Thanks in advance&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
CHARSET=AUTO
BREAK_ONLY_BEFORE=\w+\s+\d+\/\d+\/\d+\s+\d+:\d+:\d+.\d+
disabled=false
TIME_PREFIX=\w+\s
TIME_FORMAT=%m/%d/%Y %H:%M:%S.%N 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489741#M83723</guid>
      <dc:creator>swamysanjanaput</dc:creator>
      <dc:date>2020-09-30T03:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to delay splunk universal forwarder from monitoring specific files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489742#M83724</link>
      <description>&lt;P&gt;What exactly do you mean by events are distorted? Do you mean they are not in the same order as the source? If the timestamp format is correct and a match is available in the file, Splunk should display events in the right format. If not, Splunk will use the index time. I would upload the file through the UI and verify if the timestamp format and any other setting in the props.conf are breaking the events right and extracting the data in the desired way.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 12:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489742#M83724</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-11-25T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to delay splunk universal forwarder from monitoring specific files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489743#M83725</link>
      <description>&lt;P&gt;The docs:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf&lt;/A&gt;&lt;BR /&gt;
Say this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time_before_close = &amp;lt;integer&amp;gt;
* The amount of time, in seconds, that the file monitor must wait for
  modifications before closing a file after reaching an End-of-File
  (EOF) marker.
* Tells the input not to close files that have been updated in the
  past 'time_before_close' seconds.
* Default: 3

multiline_event_extra_waittime = &amp;lt;boolean&amp;gt;
* By default, the file monitor sends an event delimiter when:
  * It reaches EOF of a file it monitors and
  * The last character it reads is a newline.
* In some cases, it takes time for all lines of a multiple-line event to
  arrive.
* Set to "true" to delay sending an event delimiter until the time that the
  file monitor closes the file, as defined by the 'time_before_close' setting,
  to allow all event lines to arrive.
* Default: false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 00:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489743#M83725</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-26T00:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to delay splunk universal forwarder from monitoring specific files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489744#M83726</link>
      <description>&lt;P&gt;Thank you so much. I just added following attributes to inputs.conf and it worked like a charm:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time_before_close = 30
multiline_event_extra_waittime = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 08:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489744#M83726</guid>
      <dc:creator>swamysanjanaput</dc:creator>
      <dc:date>2019-11-26T08:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to delay splunk universal forwarder from monitoring specific files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489745#M83727</link>
      <description>&lt;P&gt;Thanks woodcock. Just put this in place for us and solved a problem that we'd been struggling with. Added these two lines to our monitor and worked like a champ (log can take up to 5min to completely populate from all the wave of scripts).&lt;/P&gt;

&lt;P&gt;time_before_close = 300&lt;BR /&gt;
multiline_event_extra_waittime = true&lt;/P&gt;

&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-to-delay-splunk-universal-forwarder-from/m-p/489745#M83727</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2020-09-30T03:34:18Z</dc:date>
    </item>
  </channel>
</rss>

