<?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 timestamp rotation log files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94573#M19677</link>
    <description>&lt;P&gt;Hi sumitnagal&lt;/P&gt;

&lt;P&gt;as written in the docs &lt;A href="http://www.splunk.com/base/Documentation/latest/Data/MonitorFilesAndDirectories"&gt;http://www.splunk.com/base/Documentation/latest/Data/MonitorFilesAndDirectories&lt;/A&gt; &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;Splunk detects log file rotation and does not process renamed files it has already indexed (with the exception of .tar and .gz archives; for more information see "Log file rotation" in this manual).&lt;/EM&gt; &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;so if you just add the directory where your logs are stored, splunk will take care of it.&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2011 11:07:12 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2011-05-04T11:07:12Z</dc:date>
    <item>
      <title>Monitoring timestamp rotation log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94572#M19676</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I am not sure if out of box solution there for log rotation, when you are adding the file or directory. We are using Apache and configured logs with timestamp. I am facing problem in adding these files through add monitor command. I don't know which is effective way I can use to add log files. same time it should not read old files. I heard about white-listing and black listing, But haven't explore much on that. how splunk will read the file when it rotates by its own.&lt;BR /&gt;
here are the examples of my log file http_access.log.2011-01-31, http_access.log.2011-05-04&lt;BR /&gt;
I am using as mention below&lt;BR /&gt;
./splunk add mointor &lt;PATH&gt;/http_access.log.2011-01-31 &lt;/PATH&gt;&lt;/P&gt;

&lt;P&gt;Looking forward for reply.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94572#M19676</guid>
      <dc:creator>sumitnagal</dc:creator>
      <dc:date>2020-09-28T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring timestamp rotation log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94573#M19677</link>
      <description>&lt;P&gt;Hi sumitnagal&lt;/P&gt;

&lt;P&gt;as written in the docs &lt;A href="http://www.splunk.com/base/Documentation/latest/Data/MonitorFilesAndDirectories"&gt;http://www.splunk.com/base/Documentation/latest/Data/MonitorFilesAndDirectories&lt;/A&gt; &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;Splunk detects log file rotation and does not process renamed files it has already indexed (with the exception of .tar and .gz archives; for more information see "Log file rotation" in this manual).&lt;/EM&gt; &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;so if you just add the directory where your logs are stored, splunk will take care of it.&lt;/P&gt;

&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 11:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94573#M19677</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2011-05-04T11:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring timestamp rotation log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94574#M19678</link>
      <description>&lt;P&gt;I agree with that, but do I need to add files like this way&lt;BR /&gt;
add monitor &lt;PATH of="" directory=""&gt;//http_access.log.\d{4}-\d{2}-\d{2}&lt;/PATH&gt;&lt;/P&gt;

&lt;P&gt;Also, I do have lot of old files so do I need to put them blacklist? &lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 11:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94574#M19678</guid>
      <dc:creator>sumitnagal</dc:creator>
      <dc:date>2011-05-04T11:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring timestamp rotation log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94575#M19679</link>
      <description>&lt;P&gt;just add the path where your logs are stored, no need to add every single file. also no need to exclude old files, once indexed by splunk old file are 'ignored'.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 11:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94575#M19679</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2011-05-04T11:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring timestamp rotation log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94576#M19680</link>
      <description>&lt;P&gt;I don't have license for that big logs, my question is simple, is the regular expression for adding these files are correct, if so I can customized by expresssion to avoid those files.&lt;BR /&gt;
BTW, The above mention regular expression is not working for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 11:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94576#M19680</guid>
      <dc:creator>sumitnagal</dc:creator>
      <dc:date>2011-05-04T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring timestamp rotation log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94577#M19681</link>
      <description>&lt;P&gt;Splunk will handle the log rotation. Simply add the &lt;A href="http://www.splunk.com/base/Documentation/latest/Data/Specifyinputpathswithwildcards"&gt;monitor with an appropriate wildcard&lt;/A&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor &amp;lt;path&amp;gt;/http_access.log.*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 May 2011 13:18:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-timestamp-rotation-log-files/m-p/94577#M19681</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-05-04T13:18:53Z</dc:date>
    </item>
  </channel>
</rss>

