Dot_Files/.config/lnav/formats/default/block_log.json.sample
2022-01-08 15:24:29 -06:00

23 lines
779 B
Plaintext

{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"block_log": {
"title": "Generic Block",
"description": "A generic format for logs, like cron, that have a date at the start of a block.",
"regex": {
"std": {
"pattern": "^(?<timestamp>\\S{3,8} \\w{3}\\s+\\d{1,2} \\d{2}:\\d{2}:\\d{2} \\w+ \\d{4})(?<body>.*)$"
},
"sq-brackets": {
"pattern": "^\\[(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3,6})?)Z?\\](?<body>.*)$"
}
},
"sample": [
{
"line": "Sat Apr 27 03:33:07 PDT 2013"
},
{
"line": "[2021-05-21T21:58:57.022497Z]"
}
]
}
}