Text cleanup.
This commit is contained in:
parent
7c2762dcff
commit
e92d2b0684
|
@ -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:
|
Create a file new file in the **/etc/rsyslog.d** folder (eg. *remote.conf*) with the following content:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
# Log authentication messages to remote host
|
# Log all authentication messages to remote host
|
||||||
auth.info,authpriv.info @10.32.64.1
|
auth.* @10.32.64.1
|
||||||
|
|
||||||
|
# Log messages with severity warning (or above) to remote host
|
||||||
|
*.warn @10.32.64.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Restart the rsyslog service
|
Restart the rsyslog service
|
||||||
|
|
|
@ -11,7 +11,6 @@ import java.nio.charset.StandardCharsets;
|
||||||
public class LokiClient {
|
public class LokiClient {
|
||||||
|
|
||||||
private final static Logger log = LoggerFactory.getLogger(LokiClient.class);
|
private final static Logger log = LoggerFactory.getLogger(LokiClient.class);
|
||||||
|
|
||||||
private final URL url;
|
private final URL url;
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,6 +44,7 @@ public class LokiClient {
|
||||||
log.debug("send() - msg: " + msg);
|
log.debug("send() - msg: " + msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.error("send() - " + e.getMessage());
|
log.error("send() - " + e.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in a new issue