Skip to content

Commit

Permalink
Merge pull request #1315 from nickvergessen/patch-1
Browse files Browse the repository at this point in the history
Simplify nextcloud_log format
  • Loading branch information
tstack authored Sep 28, 2024
2 parents 3a824e7 + 334d0f9 commit 5123b8b
Showing 1 changed file with 55 additions and 10 deletions.
65 changes: 55 additions & 10 deletions src/formats/nextcloud_log.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@
"multiline": false,
"value": {
"exception": {
"kind": "json"
"kind": "json",
"hidden": true
},
"exception/Exception": {
"kind": "string",
"identifier": true
},
"exception/Message": {
"kind": "string"
},
"app": {
"kind": "string",
Expand All @@ -36,17 +44,38 @@
"identifier": true
},
"url": {
"kind": "string"
"kind": "string",
"hidden": true
},
"method": {
"kind": "string"
"kind": "string",
"hidden": true
},
"user": {
"kind": "string",
"identifier": true
"identifier": true,
"hidden": true
},
"userAgent": {
"kind": "string",
"hidden": true
},
"version": {
"kind": "string",
"hidden": true
},
"data": {
"kind": "json",
"hidden": true
}
},
"line-format": [
"[",
{
"field": "__level__",
"text-transform": "uppercase"
},
"] ",
{
"field": "__timestamp__"
},
Expand All @@ -59,20 +88,36 @@
" ",
{
"field": "remoteAddr",
"min-width": 15
"min-width": 9,
"max-width": 9,
"overflow": "dot-dot"
},
" ",
{
"field": "__level__",
"text-transform": "uppercase"
"field": "app",
"min-width": 12,
"max-width": 12,
"overflow": "truncate"
},
" ",
{
"field": "app"
"field": "message"
},
" ",
{
"field": "message"
"field": "exception/Exception",
"prefix": "\t\t",
"suffix": "",
"default-value": ""
},
{
"field": "exception/Message",
"prefix": ": \u201c",
"suffix": "\u201d",
"default-value": ""
},
{
"field": "data",
"default-value": ""
}
]
}
Expand Down

0 comments on commit 5123b8b

Please sign in to comment.