Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Monitoring Redis Logs with ClickStack
TL;DRCollect and visualize Redis server logs in ClickStack using the OTel
filelog receiver. Includes a demo dataset and pre-built dashboard.Integration with existing Redis
This section covers configuring your existing Redis installation to send logs to ClickStack by modifying the ClickStack OTel collector configuration. If you would like to test the Redis integration before configuring your own existing setup, you can test with our preconfigured setup and sample data in the “Demo dataset” section.Prerequisites
- ClickStack instance running
- Existing Redis installation (version 3.0 or newer)
- Access to Redis log files
Verify Redis logging configuration
First, check your Redis logging configuration. Connect to Redis and check the log file location:- Linux (apt/yum):
/var/log/redis/redis-server.log - macOS (Homebrew):
/usr/local/var/log/redis.log - Docker: Often logged to stdout, but can be configured to write to
/data/redis.log
redis.conf:Create custom OTel collector configuration
ClickStack allows you to extend the base OpenTelemetry Collector configuration by mounting a custom configuration file and setting an environment variable. The custom configuration is merged with the base configuration managed by HyperDX via OpAMP.Create a file namedredis-monitoring.yaml with the following configuration:- Reads Redis Logs from their standard location
- Parses Redis’s log format using regex to extract structured fields (
pid,role,timestamp,log_level,message) - Adds
source: redisattribute for filtering in HyperDX - Routes logs to the ClickHouse exporter via a dedicated pipeline
- You only define new receivers and pipelines in the custom config
- The processors (
memory_limiter,transform,batch) and exporters (clickhouse) are already defined in the base ClickStack configuration - you just reference them by name - The
time_parseroperator extracts timestamps from Redis Logs to preserve original log timing - This configuration uses
start_at: beginningto read all existing logs when the collector starts, allowing you to see logs immediately. For production deployments where you want to avoid re-ingesting logs on collector restarts, change tostart_at: end.
Configure ClickStack to load custom configuration
To enable custom collector configuration in your existing ClickStack deployment, you must:- Mount the custom config file at
/etc/otelcol-contrib/custom.config.yaml - Set the environment variable
CUSTOM_OTELCOL_CONFIG_FILE=/etc/otelcol-contrib/custom.config.yaml - Mount your Redis log directory so the collector can read them
Ensure the ClickStack collector has appropriate permissions to read the Redis log files. In production, use read-only mounts (
:ro) and follow the principle of least privilege.Verifying Logs in HyperDX
Once configured, log into HyperDX and verify that logs are flowing:Demo dataset
For users who want to test the Redis integration before configuring their production systems, we provide a sample dataset of pre-generated Redis Logs with realistic patterns.Create test collector configuration
Create a file namedredis-demo.yaml with the following configuration:Run ClickStack with demo configuration
Run ClickStack with the demo logs and configuration:This mounts the log file directly into the container. This is done for testing purposes with static demo data.
Verify logs in HyperDX
Once ClickStack is running:- Open HyperDX and log in to your account (you may need to create an account first)
- Navigate to the Search view and set the source to
Logs - Set the time range to 2025-10-26 10:00:00 - 2025-10-29 10:00:00
Timezone DisplayHyperDX displays timestamps in your browser’s local timezone. The demo data spans 2025-10-27 10:00:00 - 2025-10-28 10:00:00 (UTC). The wide time range ensures you’ll see the demo logs regardless of your location. Once you see the logs, you can narrow the range to a 24-hour period for clearer visualizations.
Dashboards and visualization
To help you get started monitoring Redis with ClickStack, we provide essential visualizations for Redis Logs.the dashboard configuration
Import Pre-built Dashboard
- Open HyperDX and navigate to the Dashboards section.
- Click “Import Dashboard” in the upper right corner under the ellipses.
- Upload the redis-logs-dashboard.json file and click finish import.
The dashboard will be created with all visualizations pre-configured
For the demo dataset, set the time range to 2025-10-27 10:00:00 - 2025-10-28 10:00:00 (UTC) (adjust based on your local timezone). The imported dashboard won’t have a time range specified by default.
Troubleshooting
Custom config not loading
Verify the environment variable is set correctly:No logs appearing in HyperDX
Ensure Redis is writing logs to a file:Logs not parsing correctly
Verify Redis log format matches expected pattern:regex_parser operator. The standard format is:
pid:role timestamp level message- Example:
12345:M 28 Oct 2024 14:23:45.123 * Server started
Next steps
- Set up alerts for critical metrics (error rates, latency thresholds)
- Create additional dashboards for specific use cases (API monitoring, security events)