Monitoring Splunk

Tailing a file - followtail behavior

Chris_Olson
Splunk Employee
Splunk Employee

If I engage followtail on the inputs.conf, does the application only follow the logs on all restarts, or only on the first time that individual log is examined? The request is that we turn off splunk during our load tests and when we turn back on that splunk ignore what was reported during the load time.

In other words the desired behavior is for Splunk to only look at new data when restarted. Is this possible?

gkanapathy
Splunk Employee
Splunk Employee

It only takes effect the very first time a file is seen, and has no effect afterwards. I suppose you could try to clean out the fishbucket (which records the file pointers) in between restarts, which I believe will also reset the followTail to start at the end of every file, since every file then will be considered "new" or seen for the first time.


Update: It is true that followTail only takes effect the first time it sees a specific file. However, this does not mean a specific file name, but rather any new file even with a name that has been seen before. In particular, if you roll a log file, it is consider a new file, and followTail will jump to the end of that new file.

yannK
Splunk Employee
Splunk Employee

please check this answer about the misleading option followtail.
http://splunk-base.splunk.com/answers/57819/when-is-it-appropriate-to-set-followtail-to-true

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...