Getting Data In

monitor a file using tail initially blank

jamesmonico
Engager

Hello,

I have a file being monitored like this:
where xxxxxxxxxx is the filename and index name

[monitor:///splunk_formatted/xxxxxxxxxx]
followTail = 1
sourcetype=billing_data
index=xxxxxxxxxx

Initially the file does not exist, however, when it is created the first event is skipped, all following events are caught as normal.

Is this normal behaviour? and if so is there away to capture that first event?

Thanks

Tags (2)
0 Karma

the_wolverine
Champion

There is no need to use followTail, especially when the file does not yet exist.

Additionally, it is advised by Splunk that you NOT use followTail:
http://answers.splunk.com/answers/57819/when-is-it-appropriate-to-set-followtail-to-true

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