Setting Up Historical Logs

This page provides instructions on setting up and accessing historical logs on the PlexTrac server. This process leverages the journald logging driver that uses the Linux logging system as a storage backend and allows access to historical logs after a container has been updated or restarted.

Prerequisites

  • Command-line access to the server with PlexTrac installed and running

Setup Instructions

Step 1: As root, enable journald globally by adding this configuration to /etc/docker/daemon.json:

This file may not exist. If this is the case, it will need to be created.

Step 2: Restart the docker service.

Step 3: Add plextrac user to the systemd-journal group.

Step 4: As the plextrac user, update the system using this command.

Usage Basics

As a plextrac user, invoke the journalctl command to view logs.

Examples:

Available containers to pull logs from:

  • plextrac-postgres-1

  • plextrac-redis

  • plextrac-plextracdb-1

  • plextrac-plextracnginx-1

  • plextrac-plextracapi-{1,2,3}

  • plextrac-couchbase-migrations-1

  • plextrac-notification-sender-1

  • plextrac-notification-engine-1

Managing log rotation

Refer to the official configuration definition page for journald.

Last updated

© 2024 PlexTrac, Inc. All rights reserved.