<?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: Duplicate files being indexed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-files-being-indexed/m-p/85767#M17830</link>
    <description>&lt;P&gt;Try blacklisting the rolled/gzipped logs:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/apps/unix/local/inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
disabled = 0
_blacklist = (lastlog|radius\.log.+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Nov 2010 01:49:32 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2010-11-09T01:49:32Z</dc:date>
    <item>
      <title>Duplicate files being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-files-being-indexed/m-p/85766#M17829</link>
      <description>&lt;P&gt;Using the Unix App, monitoring Radius log files. /var/log/radius/radius.log
Current log file gets renamed and gzipped.  Splunk is indexing radius.log but also indexing radius.log-20101105 and radius.log-20101105.gz.&lt;/P&gt;

&lt;P&gt;Suggestions?
Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2010 01:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-files-being-indexed/m-p/85766#M17829</guid>
      <dc:creator>eelisio2</dc:creator>
      <dc:date>2010-11-09T01:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate files being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-files-being-indexed/m-p/85767#M17830</link>
      <description>&lt;P&gt;Try blacklisting the rolled/gzipped logs:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/apps/unix/local/inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
disabled = 0
_blacklist = (lastlog|radius\.log.+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Nov 2010 01:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-files-being-indexed/m-p/85767#M17830</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-11-09T01:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate files being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Duplicate-files-being-indexed/m-p/85768#M17831</link>
      <description>&lt;P&gt;That worked but only for the radius.log file. Modified the blacklist value to include a more generic form that also covered other log files in /var/log/ with the same naming convention (&lt;CODE&gt;filename.log-&amp;lt;somedate&amp;gt;[.gz|.bz2]&lt;/CODE&gt;)&lt;/P&gt;

&lt;P&gt;_blacklist=(lastlog|(.log-\d{8}.*)$)&lt;/P&gt;

&lt;P&gt;Used the command 'splunk list monitor | grep filename' to confirm the dated files were no longer being monitored, which seems to be the best way to test that the syntax is correct. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2010 02:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Duplicate-files-being-indexed/m-p/85768#M17831</guid>
      <dc:creator>Jason_1</dc:creator>
      <dc:date>2010-11-10T02:32:46Z</dc:date>
    </item>
  </channel>
</rss>

