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" : [
|
|
|
|
{ "field" : "ts" },
|
|
|
|
" ",
|
|
|
|
{ "field" : "lvl" },
|
|
|
|
" ",
|
|
|
|
{ "field" : "msg" }
|
|
|
|
],
|
|
|
|
"level-field" : "lvl",
|
|
|
|
"timestamp-field": "ts",
|
|
|
|
"body-field" : "msg",
|
|
|
|
"value" : {
|
|
|
|
"user" : {
|
|
|
|
"kind" : "string",
|
|
|
|
"identifier" : true
|
2016-12-06 00:34:30 +00:00
|
|
|
},
|
|
|
|
"msg" : {
|
|
|
|
"rewriter" : ";SELECT :msg || 'bork bork bork'"
|
|
|
|
},
|
|
|
|
"user" : {
|
|
|
|
"rewriter" : "|rewrite-user"
|
2014-03-03 06:26:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|