I'm working on an apache logs analyser, it requires the apache log files to be imported into a directory for processing. I cannot simply point it to the apache logs directory as it imports each file before deleting it. It also has no concept of duplicate records, so I cannot set up a cron to copy
/var/log/apache2/* into the folder.
I assume logrotate is the best place to do this, but I don't have a clue where to start to configure it. So my question is:
How can I configure logrotate to SSH rotated apache log files to a remote host automatically?
The alternative is to copy locally and run
rm via cron, but a one-step SSH process would be nice.