I'm looking to monitor some files locally on the Splunk instance, and I am able to add them as data inputs. However, this monitoring does not seem to be continuous; it logs those files once and then doesn't continue to monitor them even as data is added. Am I doing something wrong? How do I get these to monitor changes to the files? Thanks very much!
This is a Splunk for Windows instance running on Windows 2008 R2.
following this link: http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/WhatSplunkcanmonitor
on page 45, look this specification
Via Splunk Home: 1. Click the Add Data link in Splunk Home. 2. Click Upload to upload a file, Monitor to monitor a file, or Forward to forward a file. Note: Forwarding a file requires additional setup. See "Set up forwarding and receiving" in the Forwarding Data manual. B. Select the input source 1. To add a file or directory input, click Files & Directories. 2. In the File or Directory field, specify the full path to the file or directory. To monitor a shared network drive, enter the following: <myhost>/<mypath> (or \\<myhost>\<mypath> on Windows). Make sure Splunk Enterprise has read access to the mounted drive, as well as to the files you wish to monitor. 3. Choose how you want Splunk Enterprise to monitor the file: ·`Continuously Monitor`. Sets up an ongoing input. Splunk Enterprise monitors the file continuously for new data. Read the next section for advanced options specific to this choice. · `Index Once`. Copies a file on the server into Splunk Enterprise. 4. Click the green Next button.
when you choose "continuously indexing a file", the path of that file and the name of the file must not change. If one of them change, splunk'll not be able to index that file.
If you respect those conditions and your index file is heavy, be patien because i had files that take me more than 45 mn to be indexed