lnav/test/formats/jsontest-subsec/format.json

27 lines
703 B
JSON

{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"subsec_json_log": {
"title": "JSON Log with subsecond field",
"json": true,
"file-pattern": "logfile_json_subsec\\.json",
"line-format": [
{
"field": "__timestamp__"
},
" ",
{
"field": "msg"
}
],
"timestamp-field": "instant/epochSecond",
"subsecond-field": "instant/nanoOfSecond",
"subsecond-units": "nano",
"body-field": "msg",
"value": {
"instant": {
"kind": "json",
"hidden": true
}
}
}
}