DEV Community

Cover image for Logging using Telegraf and Influxdb for Mongo Restore and Backup Process
Irtiza Ali
Irtiza Ali

Posted on

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.

Overview

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.
The architecture given above is one of the many ways to skin this cat.

Guideline

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

  1. https://cdn3.iconfinder.com/data/icons/file-format-2/512/log_.log_file_file_format_document_extension_format-512.png

  2. https://getdrawings.com/free-icon/mongodb-icon-62.png

  3. https://d22e4d61ky6061.cloudfront.net/sites/default/files/Influxdb_logo_1.png

  4. https://icons.iconarchive.com/icons/icons8/windows-8/512/Database-Backup-icon.png

Top comments (1)

Collapse
 
umairakram206 profile image
Umair Akram

Really Appreciate your efforts!
We are here for Best SEO Services in Pakistan