2016-03-27 22:14:52 +00:00
|
|
|
{
|
|
|
|
"json_log2" : {
|
|
|
|
"title" : "Test JSON Log with integer levels",
|
|
|
|
"json" : true,
|
|
|
|
"file-pattern" : "logfile_json2\\.json",
|
|
|
|
"description" : "Test config",
|
|
|
|
"line-format" : [
|
|
|
|
{ "field" : "ts" },
|
|
|
|
" ",
|
2016-08-19 05:15:35 +00:00
|
|
|
{ "timestamp-format" : "abc %S def" },
|
|
|
|
" ",
|
2016-08-22 04:34:52 +00:00
|
|
|
{ "field" : "lvl", "min-width": 5 },
|
2016-03-27 22:14:52 +00:00
|
|
|
" ",
|
2016-08-22 13:45:27 +00:00
|
|
|
{ "field" : "cl", "max-width": 5},
|
|
|
|
" ",
|
2016-03-27 22:14:52 +00:00
|
|
|
{ "field" : "msg" }
|
|
|
|
],
|
|
|
|
"level-field" : "lvl",
|
|
|
|
"level" : {
|
|
|
|
"info" : 0,
|
|
|
|
"error" : 10
|
|
|
|
},
|
|
|
|
"timestamp-field": "ts",
|
|
|
|
"body-field" : "msg",
|
|
|
|
"value" : {
|
|
|
|
"user" : {
|
|
|
|
"kind" : "string",
|
|
|
|
"identifier" : true
|
2016-10-29 13:52:12 +00:00
|
|
|
},
|
|
|
|
"cl" : {
|
|
|
|
"kind" : "string"
|
2016-03-27 22:14:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|