Create a custom OpenTelemetry configuration
Create acustom-local-config.yaml file with the following content:
clickhouse exporter and processors (memory_limiter, batch) that are already configured in the base ClickStack collector.
Ingestion timestampsThis configuration adjusts timestamps at ingest, assigning an updated time value to each event. You should ideally preprocess or parse timestamps using OTel processors or operators in their log files to ensure accurate event time is retained.With this example setup, if the receiver or file processor is configured to start at the beginning of the file, all existing log entries will be assigned the same adjusted timestamp - the time of processing rather than the original event time. Any new events appended to the file will receive timestamps approximating their actual generation time.To avoid this behavior, you can set the start position to
end in the receiver configuration. This ensures only new entries are ingested and timestamped near their true arrival time.Start ClickStack with custom configuration
Run the following docker command to start the all-in-one container with your custom configuration:Root userWe run the collector as the root user to access all system logs—this is necessary to capture logs from protected paths on Linux-based systems. However, this approach isn’t recommended for production. In production environments, the OpenTelemetry Collector should be deployed as a local agent with only the minimal permissions required to access the intended log sources.Note that we mount the host’s
/var/log to /host/var/log inside the container to avoid conflicts with the container’s own log files.Explore system logs
Visit http://localhost:8080 to access the ClickStack UI if deploying locally. Data sources should be pre-created for you. The search UI should be populated with local system logs. Expand the filters to select thesystem.log:

Explore system metrics
We can explore our metrics using charts. Navigate to the Chart Explorer via the left menu. Select the sourceMetrics and Maximum as the aggregation type.
For the Select a Metric menu simply type memory before selecting system.memory.utilization (Gauge).
Press the run button to visualize your memory utilization over time.

%. To render it more clearly, select Set number format.

Percentage from the Output format drop down before clicking Apply.
