From 2e2e65db0ada045cfb428364cf23d5620011d223 Mon Sep 17 00:00:00 2001 From: Istvan Viczian Date: Wed, 22 Sep 2021 17:21:38 +0200 Subject: [PATCH] Log to Sematext --- src/main/resources/application.properties | 3 ++- src/main/resources/logback-sematext.xml | 27 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/logback-sematext.xml diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e77cc3d..b67e331 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,7 +2,8 @@ publish.url.prefix = http://localhost:8080 management.endpoints.web.exposure.include = info,health -logging.level.org.apache.cxf.services = debug +logging.level.com.learnwebservices = debug +logging.level.org.apache.cxf.services = warn management.endpoints.web.cors.allowed-origins=http://localhost:4000 management.endpoints.web.cors.allowed-methods=GET diff --git a/src/main/resources/logback-sematext.xml b/src/main/resources/logback-sematext.xml new file mode 100644 index 0000000..cdea67b --- /dev/null +++ b/src/main/resources/logback-sematext.xml @@ -0,0 +1,27 @@ + + + + + + logsene-syslog-receiver.sematext.com + 514 + LOCAL0 + true + ${SEMATEXT_ID}:@cee: {"logger": "%logger", "level":"%level", "thread":"%thread", + "message":"%replace(%message){'\"', '\''}", "exception":"%replace(%ex){'\"', '\''}", + "@timestamp":"%date{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX", UTC}"} + + + + + + + + + + + + + + +