Viewing JSON Format Stats

Enhanced PTP User Guide (UG1602)

Document ID
Release Date
1.1 English

The JSON-lines formatted stats_log can be read by any standard web browser JSON viewer application. An example JSON viewer HTML application is included with the sfptpd distribution:


The JSON viewer can parse the stats_log.jsonl file in real-time, while sfptpd is writing to the file, however it is recommended that the stats_log.jsonl file is rotated periodically to keep files to a manageable size.

The following is a screen-shot taken from the supplied sfptpd_json_parse.html viewer.

You can select measurements to be displayed by the sfptpd_json_parse viewer by editing fields in the html file.