1. Retrieve your credentials
- Log in at panel.checklogs.dev.
- Create or select a server in the dashboard.
- Copy the generated
API_KEYandUDP_PORT.
Install the CheckLogs agent with Docker Compose in just a few commands. This guide covers prerequisites, configuration options, and the essential commands to operate the service in production.
API_KEY and UDP_PORT.# Create the installation directory
mkdir -p /opt/checklogs && cd /opt/checklogs
# Download docker-compose.yml
curl -o docker-compose.yml https://raw.githubusercontent.com/checklogsdev/Docker/main/docker-compose.yml
# Download .env.example
curl -o .env.example https://raw.githubusercontent.com/checklogsdev/Docker/main/.env.example
# Prepare your configuration
cp .env.example .env
nano .env # Add CHECKLOGS_API_KEY and CHECKLOGS_API_PORT
docker-compose up -d
# Check the container status
docker-compose ps
# Tail the agent logs
docker-compose logs -f
# Expected output
# ✓ Configuration valid
# ✓ Agent started successfully
# 📦 Sent metrics to api.checklogs.dev
The agent is configured through the .env file. Required variables:
CHECKLOGS_API_KEY – the key generated in the dashboard.CHECKLOGS_API_PORT – the dedicated UDP port assigned to your server.Optional variables:
SERVER_NAME – label displayed in the dashboard.COLLECT_INTERVAL – interval (in seconds) between metric collections.COLLECT_CPU, COLLECT_RAM, COLLECT_DISK, COLLECT_LOAD, COLLECT_PROCESSES – enable or disable specific collectors.TOP_PROCESSES_COUNT – number of processes tracked for CPU and RAM usage.LOG_LEVEL – logging verbosity (DEBUG, INFO, WARNING, ERROR).# Start the stack
docker-compose up -d
# Stop the stack
docker-compose down
# Restart the agent
docker-compose restart
# Follow the logs
docker-compose logs -f
# Last 100 lines
docker-compose logs --tail=100
# With timestamps
docker-compose logs -f -t
# Pull the latest image
docker-compose pull
docker-compose up -d
# Check resource usage
docker stats checklogs_agent
docker-compose exec agent printenv | grep CHECKLOGS
docker-compose logs -f | grep ERROR
docker-compose exec agent ping -c 3 api.checklogs.dev
docker-compose ps
docker-compose logs --tail=50
# Check API key and UDP port values
COLLECT_INTERVAL to 30 or 60 seconds.TOP_PROCESSES_COUNT to 5.