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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...