From e2300139da862b4ec5a1fc7fd99b6c8cd249df19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Fl=C3=BChmann?= Date: Mon, 13 May 2024 15:18:01 +0200 Subject: [PATCH] PB-428: Updated json loggin format --- scripts/index-sync-rotate.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/index-sync-rotate.sh b/scripts/index-sync-rotate.sh index 1d0c5bf..9023fe6 100755 --- a/scripts/index-sync-rotate.sh +++ b/scripts/index-sync-rotate.sh @@ -47,7 +47,20 @@ json_logger() { "logger": "'"${self}"'", "pidTid": "'$$'", "function": "'"${FUNCNAME[0]}"'", - "message": . + "message": ., + "event": { + "created": "'"${timestamp}"'" + }, + "log": { + "level": "'"${log_level}"'", + "logger": "'"${self}"'", + "origin": { + "function": "'"${FUNCNAME[0]}"'" + } + }, + "process": { + "pid": "'$$'" + } }' }