Downloading Logs from Network Manager
- Navigate to Stations and select the station you want to download logs for.
- Open the Real-Time Logs tab.
- Use the time range selector to choose the period you want to export.
- Optionally filter logs by action type using the filter box.
- Click the download button (arrow icon) to download the logs.
.jsonl file (JSON Lines format).
Download Limit: Exports are limited to 500 logs to prevent browser memory issues. If your date range contains more than 500 logs, the export will be truncated. Use a narrower date range or filters to get specific logs.
JSONL File Format
The exported file uses the JSONL (JSON Lines) format, where each line is a separate JSON object. This format is optimized for streaming processing and works well with command-line tools.File Structure
Line 1 - Header:- CALL (Request):
[2, "message-id", "ActionName", {payload}] - CALLRESULT (Response):
[3, "message-id", {payload}] - CALLERROR (Error):
[4, "message-id", "ErrorCode", "ErrorDescription", {details}]
Example File Content
Working with JSONL Files
Using jq (Command Line)
jq is a powerful command-line JSON processor that works great with JSONL files. View the header:Using grep
For simple text searches:OCPP Message Types Reference
Tips
- Messages are sorted by timestamp in ascending order (oldest first).
- The message ID in each OCPP message is generated from the timestamp and action name.
- Use
tail -n +2to skip the header line when processing only messages. - The JSONL format allows processing large log files without loading everything into memory.