<?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 Indexing a file name of which changes daily in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69202#M14021</link>
    <description>&lt;P&gt;We need to index a file which has the day's date as part of its name. How to I configure Splunk to read this file? Indexing the folder is an option, but I want to eliminate this option before taking the other route.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2010 01:55:12 GMT</pubDate>
    <dc:creator>rvbalaji</dc:creator>
    <dc:date>2010-10-13T01:55:12Z</dc:date>
    <item>
      <title>Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69202#M14021</link>
      <description>&lt;P&gt;We need to index a file which has the day's date as part of its name. How to I configure Splunk to read this file? Indexing the folder is an option, but I want to eliminate this option before taking the other route.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2010 01:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69202#M14021</guid>
      <dc:creator>rvbalaji</dc:creator>
      <dc:date>2010-10-13T01:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69203#M14022</link>
      <description>&lt;P&gt;The easiest approach to this is to make a symlink to the daily file.  Tell Splunk to index the symlink, and swap the symlink out daily.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2010 02:23:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69203#M14022</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2010-10-13T02:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69204#M14023</link>
      <description>&lt;P&gt;You could monitor such a file by using a wildcard for the variable part of the file.  I.E.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://&amp;lt;path&amp;gt;/daily_file*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Presuming that the "daily_file" part is static, and what comes after that is the datestamp.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2010 02:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69204#M14023</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2010-10-13T02:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69205#M14024</link>
      <description>&lt;P&gt;We use blacklists/whitelists for this; for instance:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/httpd]
_whitelist = (access$|access-)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will pick up all logs under /var/httpd either ending in access or containing "access-" in the name, such as  "access-20101013.log". In general I've found whitelisting to be better than blacklisting or simple wildcarding because new logs won't be picked up without administrator intervention, which helps keep license costs down if someone puts a large debug log into a directory that Splunk is indexing.&lt;/P&gt;

&lt;P&gt;--James&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2010 20:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69205#M14024</guid>
      <dc:creator>jervin</dc:creator>
      <dc:date>2010-10-13T20:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69206#M14025</link>
      <description>&lt;P&gt;BTW, if you want to consolidate your log file names into a single source name (because it's annoying to see a different log file each and every day), then you may find some helpful resources on this page:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/questions/3470/consolidate-similarly-named-log-files-into-a-single-source/4420#4420" rel="nofollow"&gt;http://answers.splunk.com/questions/3470/consolidate-similarly-named-log-files-into-a-single-source/4420#4420&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 05:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69206#M14025</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-10-14T05:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69207#M14026</link>
      <description>&lt;P&gt;Seems like there could be potential timing issues with this.  For example, if you switch the symlink too soon then you miss the end of the file, and if you wait too long, then indexing gets delayed.  And last time I tried indexing a symlink (managed by &lt;CODE&gt;cronolog&lt;/CODE&gt;) back in Splunk 3.x days, this caused some indexing issues, if I'm not mistaken.  Perhaps this has all be fixed now, but it never seemed worth trying again.  That's my 2 cents.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 05:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69207#M14026</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-10-14T05:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69208#M14027</link>
      <description>&lt;P&gt;That is a good point about the timing - you would have to wait a reasonable time interval (and reasonable depends on how busy your forwarder / indexer is) after the last write to "yesterday's" file.  I think the Splunk 3.x issues with this approach have been mostly squashed - while I'm not using this approach myself I know it's been suggested before on #splunk and seemed to worked for others.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 05:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69208#M14027</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2010-10-14T05:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69209#M14028</link>
      <description>&lt;P&gt;Hey Jervin,&lt;/P&gt;

&lt;P&gt;I tried whitelisting the file we wanted to monitor and it worked like a beauty. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2010 02:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69209#M14028</guid>
      <dc:creator>rvbalaji</dc:creator>
      <dc:date>2010-10-15T02:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a file name of which changes daily</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69210#M14029</link>
      <description>&lt;P&gt;I tried configuring as you have mentioned using the Splunk\Manager\&lt;BR /&gt;
Data Inputs\File &amp;amp; Directories\Add New and it did not start indexing this file.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2010 02:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-file-name-of-which-changes-daily/m-p/69210#M14029</guid>
      <dc:creator>rvbalaji</dc:creator>
      <dc:date>2010-10-15T02:42:57Z</dc:date>
    </item>
  </channel>
</rss>

