Getting Data In

How can I monitor a file when it changes?

Tacoff_Sun
New Member

There is a only one file named change.log whose name won't be changed. When my environment changes, I always take this log and append in change.log by script, but Splunk always indexes the new records which I append. How can I get splunk to index the whole content every time change.log updates?

Tags (3)
0 Karma

pedromvieira
Communicator

You can use crcSalt inside inputs.conf

http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf

Example:

[monitor:///opt/splunk/etc/apps/YOURAPP/samples/*]
...
crcSalt = <SOURCE>
...
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...