2014-03-03 06:26:41 +00:00
|
|
|
{
|
|
|
|
"test_log" : {
|
|
|
|
"title" : "Test JSON Log",
|
|
|
|
"json" : true,
|
2015-04-26 11:57:36 +00:00
|
|
|
"file-pattern" : "logfile_json\\.json",
|
2014-03-03 06:26:41 +00:00
|
|
|
"description" : "Test config",
|
|
|
|
"line-format" : [
|
2019-05-13 17:35:54 +00:00
|
|
|
"\n[",
|
2014-03-03 06:26:41 +00:00
|
|
|
{ "field" : "ts" },
|
2019-05-13 17:35:54 +00:00
|
|
|
"] ",
|
2014-03-03 06:26:41 +00:00
|
|
|
{ "field" : "lvl" },
|
|
|
|
" ",
|
|
|
|
{ "field" : "msg" }
|
|
|
|
],
|
|
|
|
"level-field" : "lvl",
|
|
|
|
"timestamp-field": "ts",
|
|
|
|
"body-field" : "msg",
|
|
|
|
"value" : {
|
|
|
|
"user" : {
|
|
|
|
"kind" : "string",
|
2019-07-11 21:59:54 +00:00
|
|
|
"identifier" : true,
|
|
|
|
"rewriter" : "|rewrite-user"
|
2016-12-06 00:34:30 +00:00
|
|
|
},
|
|
|
|
"msg" : {
|
|
|
|
"rewriter" : ";SELECT :msg || 'bork bork bork'"
|
|
|
|
},
|
2018-11-15 05:46:49 +00:00
|
|
|
"obj" : {
|
|
|
|
"kind" : "json"
|
|
|
|
},
|
|
|
|
"arr" : {
|
|
|
|
"kind" : "json"
|
2014-03-03 06:26:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|