Documentation
DocumentationDiscussions

Migrating Seq Data

πŸ“˜

This page documents the process of replacing the event data in one Seq server with the event data from another Seq server. All data on the destination Seq server will be overridden.

  1. Backup (Windows Docker) the source Seq server
  2. Stop the source Seq server
  3. Upgrade the source Seq server to the latest version.
  4. Install the destination Seq server. This must be exactly the same version of Seq as the source Seq server
  5. Restore the backup from the source Seq server on the destination Seq server
  6. Stop the destination Seq server
  7. Find and delete the destination Seq servers Stream directory. On Windows this defaults to C:\ProgramData\Seq\Stream. On docker it is within the mounted directory.
  8. Copy the source Seq server's Stream directory to the destination Seq servers data directory (the directory containing the file Seq.json)
  9. Start the destination Seq server

Docker Example

  1. Create a source Seq server on port 5342 with data directory mapped to ~/docker/data/migrations/source: Starting a Seq docker container

  2. Send some sample data to the source Seq server:

     seqcli sample ingest -s http://localhost:5342
    
  3. Download a backup of the source Seq server:

  4. Stop the source Seq server. Get the secret key:

  5. Create a destination Seq server on port 5343 with data directory mapped to ~/docker/data/migrations/destination:

  6. Stop the destination Seq server and restore the backup from the source Seq server: Note that the path to the backup file is the path from inside the container.

  7. Delete the destination Seq server's Stream directory and copy the source Seq server's Stream directory:

  8. Start the destination Seq server and check that all settings and event data are present