Primeur Online Docs
Data Watcher 1.20
Data Watcher 1.20
  • 🚀GETTING STARTED
    • What is Primeur Data Watcher
    • Main features of Primeur Data Watcher
    • Navigate through Primeur Data Watcher
  • 🔶MODEL
    • Modeling Dataflows
    • Dataflow Model lifecycle 🚀
    • Dataflow Modeler 🚀
      • Dataflow Modeler toolbar
      • Dataflow Properties panel
      • Node Properties panel
      • Matching Criteria
      • Cut-offs 🚀
      • Notifications 🚀
      • Dataflow Model attributes
  • 🕒MONITOR
    • Dataflow Inquiry 🚀
      • Dataflow Inquiry options 🚀
      • Levels of detail of the dataflow 🚀
    • Dataflow Instance attributes
    • Cut-off Board 🚀
  • DESIGN
    • Configure Dataflow attributes
    • Save and share queries
  • 🧐TROUBLESHOOTING
    • Data Watcher users 🚀
    • Data Watcher Engine extended downtime vs missing events and/or dataflows
    • How to run searches in Data Watcher
    • Data Watcher MongoDB scripts
      • Back up the Data Watcher MongoDB 🚀
      • Restore the Data Watcher MongoDB 🚀
      • Clean up the Data Watcher MongoDB
Powered by GitBook
On this page
  1. TROUBLESHOOTING
  2. Data Watcher MongoDB scripts

Clean up the Data Watcher MongoDB

To clean up the Data Watcher DB launch the mongodb-cleaner.sh script, stored at: $DATAWATCHER_HOME/dweventscollection/maintenance

Usage:

./mongodb-cleaner.sh [ last=10 | to=29/01/2020 | status | stop ] Where:

  • last=n The cleaner will delete all data older than the number of days entered. E.g.: last=10 will delete all data that is 11 days or older.

  • to=DD/MM/YYYY The cleaner will delete all data up to a specific date. E.g.: to=01/09/2020 will delete all data up to 31st August, 2020. Data from 1st September, 2020 to the current date will be kept.

  • status: It prints if the cleaner is running or not

  • stop: It stops the cleaner - if running

Logs: The cleaner logs information at this path: $DATAWATCHER_HOME/dweventscollection/logs/mongodb-cleaner.log. The history of the latest 4 cleanup procedures are saved.

PreviousRestore the Data Watcher MongoDB 🚀

Last updated 24 days ago

🧐