<?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: Indexing same log file multiple times issue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174100#M35044</link>
    <description>&lt;P&gt;whitelist = a.log$&lt;BR /&gt;
blacklist = .*zip$&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2015 11:47:55 GMT</pubDate>
    <dc:creator>gyarici</dc:creator>
    <dc:date>2015-05-28T11:47:55Z</dc:date>
    <item>
      <title>Indexing same log file multiple times issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174095#M35039</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a question regarding indexing log file. I am using one application and monitoring events online.I have no issue with this but after midnight, this file is zipped and renamed inside the same directory by the application.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
Original file name is :  a.log and become: a-070515.log.zip&lt;/P&gt;

&lt;P&gt;Therefore Splunk indexing the same file(s) double time. (a.log and a-070515.log.zip)&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I need to monitor event online&lt;/LI&gt;
&lt;LI&gt;If I ignore indexing a.log only, I cannot follow the events online.&lt;/LI&gt;
&lt;LI&gt;If I ignore indexing a-xxxx.log , there is risk to be indexed on time (?) -network connection issue etc..&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;How can I figure out this easily?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Gokhan&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 14:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174095#M35039</guid>
      <dc:creator>gyarici</dc:creator>
      <dc:date>2015-05-07T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing same log file multiple times issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174096#M35040</link>
      <description>&lt;P&gt;Modify your inputs.conf to include a whiltelist/blacklist:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;whitelist=\.log$
blacklist=\.gz$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I believe that the .log files are only being processed once and that the second copy is from the .gz file.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 14:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174096#M35040</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-07T14:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing same log file multiple times issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174097#M35041</link>
      <description>&lt;P&gt;Thanks for the answer. I have some doubts.&lt;/P&gt;

&lt;P&gt;If all a.log files are not indexed before midnight due to network issue or other possible scenarios (these files are zipped after midnight), Splunk forwarder somehow caches this data to send it to the Splunk server later OR I lost the data to be indexed due to name(a.log.zip) as blacklist.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2015 08:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174097#M35041</guid>
      <dc:creator>gyarici</dc:creator>
      <dc:date>2015-05-08T08:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing same log file multiple times issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174098#M35042</link>
      <description>&lt;P&gt;Research "crcSalt=&amp;lt;SOURCE&amp;gt;".  By default, Splunk does not use the name of the file to see if it has forwarded this file or not; it uses a CRC checksum of the first and last bytes of the file.  So by default (i.e. unless you TOLD Splunk NOT TO), Splunk will ignore a file that is renamed and not reforward it.  However, if you compress it and you have not told splunk NOT to forward the compressed files, it will happily forward the compressed file's contents.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2015 14:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174098#M35042</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-08T14:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing same log file multiple times issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174099#M35043</link>
      <description>&lt;P&gt;Thanks for the advice. I did it with using whitelist/blacklist. I also revised the wildcards according to link below.&lt;BR /&gt;
&lt;A href="http://"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;BR /&gt;
Now everything is ok.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2015 11:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174099#M35043</guid>
      <dc:creator>gyarici</dc:creator>
      <dc:date>2015-05-28T11:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing same log file multiple times issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174100#M35044</link>
      <description>&lt;P&gt;whitelist = a.log$&lt;BR /&gt;
blacklist = .*zip$&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2015 11:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-same-log-file-multiple-times-issue/m-p/174100#M35044</guid>
      <dc:creator>gyarici</dc:creator>
      <dc:date>2015-05-28T11:47:55Z</dc:date>
    </item>
  </channel>
</rss>

