Getting Data In

How to configure forwarder filename with timestamp

riyastk
New Member

I have a custom application and the log gets created at 7:00 UTC every day. The log file will have timestamp in the filename. How do I configure the forwarder to send the file to Splunk indexer?

Example: /var/log/homerun-20200104.

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

In your inputs.conf monitor stanza you can use wildcards:

[monitor:///var/log/homerun-*]
index = foo
sourcetype = bar
etc.

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

In your inputs.conf monitor stanza you can use wildcards:

[monitor:///var/log/homerun-*]
index = foo
sourcetype = bar
etc.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...