{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "procstate_log": {
        "title": "Process State",
        "description": "Periodic dumps of process state",
        "regex": {
            "std": {
                "pattern": "========== Start of system state dump at (?<timestamp>[^=]+)==========(?<body>.*)"
            }
        },
        "sample": [
            {
                "line": "========== Start of system state dump at Thu Jun 2 00:01:01 UTC 2022 =========="
            }
        ],
        "search-table": {
            "procstate_procs": {
                "pattern": "^(?<user>\\S+)\\s+(?<pid>\\d+)\\s+(?<cpu_pct>\\d+(?:\\.\\d+)?)\\s+(?<mem_pct>\\d+(?:\\.\\d+)?)\\s+(?<vsz>\\d+)\\s+(?<rss>\\d+)\\s(?<tty>\\S+)\\s+(?<stat>\\S+)\\s+(?<start_time>\\S+)\\s+(?<cpu_time>\\S+)\\s+(?<cmd>(?<cmd_name>[^ \\n]+)(?: (?<cmd_args>[^\\n]+))?)$"
            }
        }
    }
}