Logging using Telegraf and Influxdb for Mongo Restore and Backup Process

This story provides a way to backup and restore MongoDB data using bash scripts, data encryption and decryption using OpenSSL, logs collection using telegraf and influxDB for data storage.


In the above diagram, MongoDB is running on VM-1, while data backup and restore with telegraf on VM-2, telegraf collects the logs generated by backup and restore processes and finally dump the logs in a measurement of influxDB running on VM-3.


Detailed guidelines for the above processes can be found in the README.md of this repository.

Final Thoughts

I hope you have liked this tutorial. Do give me feedback about anything that can be improved. Thank you.

Image credits


DevSecOps Engineer https://irtizaali.com/