<?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: File monitoring in inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/File-monitoring-in-inputs-conf/m-p/406616#M72147</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/sample/logs/test*.log]
index = test
disabled = false
sourcetype = test_logs
blacklist = (test*-\d{2,}\.log$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;DEFINITELY DO NOT USE THESE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ignoreOlderThan = 30d
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 13 Apr 2019 17:54:32 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-04-13T17:54:32Z</dc:date>
    <item>
      <title>File monitoring in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-monitoring-in-inputs-conf/m-p/406614#M72145</link>
      <description>&lt;P&gt;I want to configure an file in a directory which will be rolling over to new file within 2mins.&lt;BR /&gt;
I tried basic inputs.conf as below, its working fine but its missing files which was rolled in to new For example, test.log is the file I want to continuously monitor, this test.log will be renamed as test-1.log within 2 mins and new datas will be written in test.log. My config is monitoring test.log once and after 6mins only test.log is again reading i.e., in between test-2.log created in 4th min and test-3.log in 6th min is ignored. I want to configure to monitor only test.log without any loss of data on it. &lt;BR /&gt;
&lt;STRONG&gt;Note: logs are placed in *nix systems&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;inputs.conf used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/sample/logs/test*.log]
index = test
disabled = false
sourcetype = test_logs
blacklist = (test*-\d{1,2}\.log$)
ignoreOlderThan = 30d
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-monitoring-in-inputs-conf/m-p/406614#M72145</guid>
      <dc:creator>Boopalan</dc:creator>
      <dc:date>2019-04-12T15:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: File monitoring in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-monitoring-in-inputs-conf/m-p/406615#M72146</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/sample/logs/test*.log]
 index = test
 sourcetype = test_logs
 ignoreOlderThan = 30d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-monitoring-in-inputs-conf/m-p/406615#M72146</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-12T16:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: File monitoring in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-monitoring-in-inputs-conf/m-p/406616#M72147</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/sample/logs/test*.log]
index = test
disabled = false
sourcetype = test_logs
blacklist = (test*-\d{2,}\.log$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;DEFINITELY DO NOT USE THESE:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ignoreOlderThan = 30d
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Apr 2019 17:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-monitoring-in-inputs-conf/m-p/406616#M72147</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-13T17:54:32Z</dc:date>
    </item>
  </channel>
</rss>

