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!

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 ...

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...