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" : {
|
2016-12-06 00:34:30 +00:00
|
|
|
"msg" : {
|
|
|
|
"rewriter" : ";SELECT :msg || 'bork bork bork'"
|
|
|
|
},
|
2020-04-23 13:42:48 +00:00
|
|
|
"arr" : {
|
2018-11-15 05:46:49 +00:00
|
|
|
"kind" : "json"
|
|
|
|
},
|
2020-04-23 13:42:48 +00:00
|
|
|
"obj" : {
|
2018-11-15 05:46:49 +00:00
|
|
|
"kind" : "json"
|
2020-04-23 13:42:48 +00:00
|
|
|
},
|
|
|
|
"user" : {
|
|
|
|
"kind" : "string",
|
|
|
|
"identifier" : true,
|
|
|
|
"rewriter" : "|rewrite-user"
|
2014-03-03 06:26:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|