2015-04-11 05:55:57 +00:00
|
|
|
{
|
2022-04-12 23:07:13 +00:00
|
|
|
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
|
2015-04-11 05:55:57 +00:00
|
|
|
"epoch_log": {
|
|
|
|
"title": "epoch timestamp test",
|
|
|
|
"regex": {
|
|
|
|
"std": {
|
|
|
|
"pattern": "^(?<timestamp>\\d+) (?<body>.*)$"
|
2016-11-22 16:38:45 +00:00
|
|
|
},
|
|
|
|
"non_epoch": {
|
2022-09-12 14:18:26 +00:00
|
|
|
"pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d+) (?<body>.*)$"
|
2015-04-11 05:55:57 +00:00
|
|
|
}
|
|
|
|
},
|
2022-09-12 14:18:26 +00:00
|
|
|
"timestamp-format": [
|
2016-11-22 16:38:45 +00:00
|
|
|
"%i",
|
|
|
|
"%Y-%m-%d %H:%M:%S.%f"
|
2015-04-11 05:55:57 +00:00
|
|
|
],
|
|
|
|
"sample": [
|
|
|
|
{
|
|
|
|
"line": "1428634687123 Hello, World!"
|
2022-09-12 14:18:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"line": "2022-09-10 19:57:36.123456 Hello, World"
|
2015-04-11 05:55:57 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|