blob: 2a3740adc3a42adf90d63ce9b6da95541c2e25f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"epoch_log": {
"title": "epoch timestamp test",
"regex": {
"std": {
"pattern": "^(?<timestamp>\\d+) (?<body>.*)$"
},
"non_epoch": {
"pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d+) (?<body>.*)$"
}
},
"timestamp-format": [
"%i",
"%Y-%m-%d %H:%M:%S.%f"
],
"sample": [
{
"line": "1428634687123 Hello, World!"
},
{
"line": "2022-09-10 19:57:36.123456 Hello, World"
}
]
}
}
|