Getting Data In

growing file

splunk_gs
Explorer

I have a growing file on a remote location. Can i use the forwarder to monitor this file without having to reupload it everytime it grows? i know initially it will upload the main file but overtime when it grows i just want it to add the changes not the entire file. How do i go about setting this up?

Thanks

Tags (2)
0 Karma
1 Solution

sdaniels
Splunk Employee
Splunk Employee

Yes, you can install a forwarder on that remote server and set up file monitoring. Splunk will handle log rotation without re-indexing data it has already taken in and remember where it was for a given file so that it only takes in the new data. An exception would be archive files like .tar and .gz. Check the docs.

http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories

View solution in original post

0 Karma

sdaniels
Splunk Employee
Splunk Employee

Yes, you can install a forwarder on that remote server and set up file monitoring. Splunk will handle log rotation without re-indexing data it has already taken in and remember where it was for a given file so that it only takes in the new data. An exception would be archive files like .tar and .gz. Check the docs.

http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories

0 Karma

sdaniels
Splunk Employee
Splunk Employee

You'll want to set a sourcetype and index. There are other settings that you can look at with details in the inputs.conf spec. Splunk will remember where it is in a file to continuously monitor it and not duplicate data.

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

0 Karma

splunk_gs
Explorer

are there any specific options i would need to select to do this? like tail forwarding?

0 Karma
Get Updates on the Splunk Community!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...