From e92d2b06843c74a3d8dd396283f5561f5a40b141 Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Thu, 25 Mar 2021 21:13:06 +0100 Subject: [PATCH] Text cleanup. --- doc/powervc-auth.md | 7 +++++-- src/main/java/biz/nellemann/syslogd/net/LokiClient.java | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/powervc-auth.md b/doc/powervc-auth.md index 9914ebd..281cd8d 100644 --- a/doc/powervc-auth.md +++ b/doc/powervc-auth.md @@ -5,8 +5,11 @@ Configure rsyslog on your PowerVC instance to forward authentication messages to Create a file new file in the **/etc/rsyslog.d** folder (eg. *remote.conf*) with the following content: ```text -# Log authentication messages to remote host -auth.info,authpriv.info @10.32.64.1 +# Log all authentication messages to remote host +auth.* @10.32.64.1 + +# Log messages with severity warning (or above) to remote host +*.warn @10.32.64.1 ``` Restart the rsyslog service diff --git a/src/main/java/biz/nellemann/syslogd/net/LokiClient.java b/src/main/java/biz/nellemann/syslogd/net/LokiClient.java index 95c3d99..08118ab 100644 --- a/src/main/java/biz/nellemann/syslogd/net/LokiClient.java +++ b/src/main/java/biz/nellemann/syslogd/net/LokiClient.java @@ -11,7 +11,6 @@ import java.nio.charset.StandardCharsets; public class LokiClient { private final static Logger log = LoggerFactory.getLogger(LokiClient.class); - private final URL url; @@ -45,6 +44,7 @@ public class LokiClient { log.debug("send() - msg: " + msg); } + } catch (IOException e) { log.error("send() - " + e.getMessage()); } finally {