lnav/test/formats/timestamp/format.json
2016-11-22 08:38:45 -08:00

23 lines
540 B
JSON

{
"epoch_log": {
"title": "epoch timestamp test",
"regex": {
"std": {
"pattern": "^(?<timestamp>\\d+) (?<body>.*)$"
},
"non_epoch": {
"pattern": "^(?<timestamp>\\d+-\\d+-\\d+ \\d+:\\d+:\\d+\\.\\d+) (?<body>.*)$"
}
},
"timestamp-format" : [
"%i",
"%Y-%m-%d %H:%M:%S.%f"
],
"sample": [
{
"line": "1428634687123 Hello, World!"
}
]
}
}