<?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: Monitoring a rolling log file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311091#M161911</link>
    <description>&lt;P&gt;It would be helpful if you posted your stanza..&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 14:51:37 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2018-04-04T14:51:37Z</dc:date>
    <item>
      <title>Monitoring a rolling log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311088#M161908</link>
      <description>&lt;P&gt;I have a requirement to monitor a rolling log file from a folder. The name of the file is like below&lt;/P&gt;

&lt;P&gt;CalculationMgr-xx(yy).log&lt;/P&gt;

&lt;P&gt;Here, xx &amp;amp; yy are the numbers which keeps on changing each time the service restarts. Also for the first time, I do not want to index the old data from the log file but in case the Splunk UF is stopped by any reason, it should not loose the data after it restarts. So can any one help me with the correct Monitor stanza I have to use in this case?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311088#M161908</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-04-03T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring a rolling log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311089#M161909</link>
      <description>&lt;P&gt;Here's a good start&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://&amp;lt;PATH_TO_FILE&amp;gt;/CalculationMgr-*.log]
 index=&amp;lt;YOUR INDEX NAME&amp;gt;
 sourcetype=&amp;lt;YOUR SOURCETYOE&amp;gt;
ignoreolderthan=-1d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will also need to configure &lt;CODE&gt;outputs.conf&lt;/CODE&gt; to point to your indexer(s) and restart the splunkd service on the forwarder. The &lt;CODE&gt;ignoreolderthan&lt;/CODE&gt; attribute will ignore all file older than 1 day, you may want to modify this to fit your use case. Also the fishbucket on the UF will prevent duplication of data &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Forwarder/7.0.3/Forwarder/Configuretheuniversalforwarder"&gt;http://docs.splunk.com/Documentation/Forwarder/7.0.3/Forwarder/Configuretheuniversalforwarder&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/7.0.0/Data/Monitorfilesanddirectorieswithinputs.conf"&gt;http://docs.splunk.com/Documentation/SplunkCloud/7.0.0/Data/Monitorfilesanddirectorieswithinputs.conf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2008/08/14/what-is-this-fishbucket-thing.html"&gt;https://www.splunk.com/blog/2008/08/14/what-is-this-fishbucket-thing.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311089#M161909</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-04-03T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring a rolling log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311090#M161910</link>
      <description>&lt;P&gt;Tried this but getting error in Splunkd&lt;/P&gt;

&lt;P&gt;04-04-2018 08:34:03.983 -0400 DEBUG TailingProcessor - Not using stanza for this item (File did not match whitelist '^D:\\Program\ Files\ (x86)\\Proficy\\Proficy\ Server\\LogFiles\\CalculationMgr[^]*.log$'.).&lt;/P&gt;

&lt;P&gt;04-04-2018 08:34:03.982 -0400 DEBUG TailReader - Returning disposition=IGNORE_THIS_PATH for file=D:\Program Files (x86)\Proficy\Proficy Server\LogFiles\CalculationMgr-1023(11).Log&lt;/P&gt;

&lt;P&gt;UF is Windows 2012 server&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311090#M161910</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2020-09-29T18:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring a rolling log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311091#M161911</link>
      <description>&lt;P&gt;It would be helpful if you posted your stanza..&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311091#M161911</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-04-04T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring a rolling log file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311092#M161912</link>
      <description>&lt;P&gt;I tried multiple combinations like below, but no success.&lt;/P&gt;

&lt;P&gt;[monitor://D:\Program Files (x86)\Proficy\Proficy Server\LogFiles\CalculationMgr*.log]&lt;BR /&gt;
source = Log&lt;BR /&gt;
sourcetype = CalculationMgr&lt;BR /&gt;
recursive = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[monitor://D:\Program Files (x86)\Proficy\Proficy Server\LogFiles]&lt;BR /&gt;
source = Log&lt;BR /&gt;
sourcetype = CalculationMgr&lt;BR /&gt;
recursive = false&lt;BR /&gt;
whitelist = CalculationMgr-\d+(\d+).log$&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[monitor://D:\Program Files (x86)\Proficy\Proficy Server\LogFiles]&lt;BR /&gt;
source = Log&lt;BR /&gt;
sourcetype = CalculationMgr&lt;BR /&gt;
recursive = false&lt;BR /&gt;
whitelist = CalculationMgr-*.log$&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
disabled = 0&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Monitoring-a-rolling-log-file/m-p/311092#M161912</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-04-04T14:59:13Z</dc:date>
    </item>
  </channel>
</rss>

