summaryrefslogtreecommitdiffstats
path: root/src/formats/procstate_log.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/formats/procstate_log.json')
-rw-r--r--src/formats/procstate_log.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/formats/procstate_log.json b/src/formats/procstate_log.json
new file mode 100644
index 0000000..74332dd
--- /dev/null
+++ b/src/formats/procstate_log.json
@@ -0,0 +1,22 @@
+{
+ "$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]+))?)$"
+ }
+ }
+ }
+} \ No newline at end of file