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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...