I am deploying a raspberry pi in a remote location with a stable internet connection. The pi will run 24/7 and has a few services which output their logs to /var/logs/A.log
, /var/logs/B.log
etc.
I am planning to write a python script that will be run by crontab every 15 minutes. This script will read through the logs and only send what's not been sent before.
How should I do this? What would your recommendations be?
Due to the fact that the raspberry pi runs on a sd card, I don't know whether it would be that good an idea to use a database as I want to limit the number of writes to the SD card which has a higher rate of failure.