Export and Import Graylog configuration

I have just moved my Graylog from one ubuntu installation to another. I followed this guide

Four main things to do

  1. Data base dump / export
  2. Export / copy graylog config file to new server
  3. Export / copy node_id_file to the new server
  4. Date base import

Also if your using TLS dont forget to import your certs to the java key store.

I found, as the default installation has the sidecar user already I had to delete it and re-import again so I didn’t lose all my authentication tokens, I also had to add the admin role back to my admin users.

Export / dump command used
mongodump --db graylog --out /home/username/graylog_backup

Restore command used
sudo mongorestore /home/username/graylog_backup

Good luck

3 Likes