Logging infrastructure for EPICS-based control systems using Loki and Promtail

To support multiple scientific facilities at SLAC, a modern logging system capable of high message throughput and easy record filtering is required. A new logging system deployed at SLAC meets these requirements by blending an existing EPICS logging server with open-source technologies for log storage and retrieval. To save log data, Loki was chosen as the data storage technology. Promtail was selected to push existing log files generated by various EPICS clients into Loki. To encourage increased accelerator operator engagement, multiple interfaces are provided for interacting with logs. Grafana dashboards offer a user-friendly way to build displays with minimal code, while a custom PyQt-based user interface displays the results of direct queries to Loki in a table-based display. A wrapper script around LogCLI called qlog provides a command-line interface for interacting with the logs. The rationale behind these decisions and their integration into our controls infrastructure will be considered.

Publication Details

Journal
JACOW
Published
2025-12-05
DOI
https://doi.org/10.18429/jacow-icalepcs2025-wepd064
Primary Topic
Software System Performance and Reliability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Logging infrastructure for EPICS-based control systems using Loki and Promtail

JACOW
Software System Performance and Reliability
article

Logging infrastructure for EPICS-based control systems using Loki and Promtail

article en

Abstract

To support multiple scientific facilities at SLAC, a modern logging system capable of high message throughput and easy record filtering is required. A new logging system deployed at SLAC meets these requirements by blending an existing EPICS logging server with open-source technologies for log storage and retrieval. To save log data, Loki was chosen as the data storage technology. Promtail was selected to push existing log files generated by various EPICS clients into Loki. To encourage increased accelerator operator engagement, multiple interfaces are provided for interacting with logs. Grafana dashboards offer a user-friendly way to build displays with minimal code, while a custom PyQt-based user interface displays the results of direct queries to Loki in a table-based display. A wrapper script around LogCLI called qlog provides a command-line interface for interacting with the logs. The rationale behind these decisions and their integration into our controls infrastructure will be considered.

JACOW
Industry, innovation and infrastructure
Openalex Percentile: Top 38%
Software System Performance and Reliability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.