Graylog migration

Hello,

  1. Describe your incident: We are planning on migrating to a new OS because CentOS 7 reached its EOL.

  2. Describe your environment
    OS Information: From CentOS 7 to RHEL 9
    Package Version:
    Graylog 6.1
    Mongo 5.0
    Opensearch 1.3
    (same version is installed on the other OS)

  3. What steps have you already taken to try and solve the problem?
    None so far. We’ve reached out to a support engineer in graylog regarding this and he/she advised that we transfer files from directories onto the new machine.

  4. How can the community help?
    Does anyone have experience with this?

Thanks,
Jeric

Hello @jecjecx

Assuming you have version parity between both the old cluster and the new cluster then dumping mongo and restoring that to the new cluster would ensure you maintain the configuration. Copying the data directory across would persist the data, you could also reindex from one cluster to another.

This is all made much simpler if you can plan for down time or does this need to be as close to rolling as possible?

1 Like

We did a migration from Centos-6 to oracle-linux-6, there is a genuine tool to migrate Centos to Rocky linux (8/9) and others for example.

As you are only running Graylog and Opensearch these migrations should work without any problems.

@Wine_Merchant

We have planned downtime. We might proceed with checking if each directory has the corresponding files we need for when we migrate to another OS. We will do a backup so that if ever this migration fails we could try another method. As per the supports suggestion this was the directory where the corresponding files can be found.

  • Graylog Configuration File:

    • /etc/graylog/server/server.conf (Linux)
    • C:\Program Files\Graylog\server\graylog.conf (Windows)
  • Graylog Log Files:

    • /var/log/graylog-server/ (Linux)
    • C:\Program Files\Graylog\server\logs\ (Windows)
  • Graylog Data Files:

    • /var/lib/graylog-server/ (Linux)
    • C:\Program Files\Graylog\server\data\ (Windows)
  • Elasticsearch (if used):

    • /etc/elasticsearch/ (configuration files)
    • /var/lib/elasticsearch/ (data files)
    • /var/log/elasticsearch/ (log files)
  • MongoDB (if used):

    • /etc/mongodb.conf (configuration file)
    • /var/lib/mongodb/ (data files)
    • /var/log/mongodb/ (log files)

@Arie

What tools are you using?

There are several places to look for this, depending on what
distribution you want to move over to.

The ones with the leap method are respected and wel supported.
What it does is enabeling the needed repo’s, invesigate possible
hickups and then if wanted by command migrates centos 6 to the
linux distribution to your likings.

https://docs.rockylinux.org/guides/migrate2rocky/

https://blogs.oracle.com/scoter/post/upgrade-centos-7-to-oracle-linux-8

I did this once with oracle linux, without any problems.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.