Hey everyone, I am using a script (running via cron) to pull files from a remote server once a day. On that remote server, there is an export which runs once a day, and is then zipped. This is stored in a repository directory of all files ever created.
I run this command to pull down the files:
rsync -avz --exclude 'callhistoryexport_L*'
[email protected]:FOLDER/callhistoryexport*.gz FOLDER/
Now, this should conserve all file information, including the modtime of the files. The script is set up because more devices will be added in the future, and they will all store their exports in this directory.
The universal forwarder installed on the machine running this script is configured to monitor that directory.
Now, after rsync runs, the splunk forwarder is re-sending everything to the indexers, and I can't figure out why. Rsync is preserving all timestamps, so that shouldn't be it. It's not redownloading anything, only the new file (verified in the logs from the script). So why is the forwarder resending everything?
Is anyone doing anything similar to this? If so, how did you resolve this problem? Or is there any way to get the forwarder to stop forwarding this data?
... View more