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!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...