More logging examples.
This commit is contained in:
parent
49c710ee46
commit
8e84b9ca5c
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Instructions for how to forward errlogger messages from IBM AIX and IBM Power Systems VIO Servers to a remote logging solution.
|
Instructions for how to forward errlogger messages from IBM AIX and IBM Power Systems VIO Servers to a remote logging solution.
|
||||||
|
|
||||||
More information on the AIX errlogger is available on the IBM [knowledge center](https://www.ibm.com/support/knowledgecenter/ssw_aix_72/generalprogramming/error_notice.html).
|
More information about the AIX errlogger is available on the IBM [knowledge center](https://www.ibm.com/support/knowledgecenter/ssw_aix_72/generalprogramming/error_notice.html).
|
||||||
|
|
||||||
## On each AIX / VIO Server
|
## On each AIX / VIO Server
|
||||||
|
|
||||||
|
@ -24,6 +24,9 @@ Add the following to the /etc/syslog.conf file:
|
||||||
|
|
||||||
# Also log to a local file, rotated daily and kept for 7 days
|
# Also log to a local file, rotated daily and kept for 7 days
|
||||||
*.warn /var/log/error.log rotate time 1d files 7
|
*.warn /var/log/error.log rotate time 1d files 7
|
||||||
|
|
||||||
|
# Optionally log authentication messages to remote host
|
||||||
|
#auth.info,authpriv.info @10.32.64.29
|
||||||
```
|
```
|
||||||
We use *10.32.64.1* as our remote syslog server in the above example.
|
We use *10.32.64.1* as our remote syslog server in the above example.
|
||||||
|
|
||||||
|
|
24
doc/power-hmc.md
Normal file
24
doc/power-hmc.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# Power Systems HMC Remote Logging
|
||||||
|
|
||||||
|
Instructions for how to forward syslog messages from a IBM Power Systems HMC to a remote logging solution.
|
||||||
|
|
||||||
|
More information about HMC logging is available on the IBM [knowledge center](https://www.ibm.com/support/pages/hmc-logging-and-auditing).
|
||||||
|
|
||||||
|
|
||||||
|
### Instructions
|
||||||
|
|
||||||
|
Network / Firewall must allow UDP (and possible TCP) traffic on port 514 from HMC to the remote syslog server. We use *10.32.64.1* as our remote syslog server in the example below.
|
||||||
|
|
||||||
|
To add a remote logging destination:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
chhmc -c syslog -t udp -s add -h 10.32.64.1 --input "filter_msg_contains_discard_strings=run-parts,slice,session,leases,renewal,0anacron,Session,DHCPREQUEST,DHCPACK,CMD"
|
||||||
|
```
|
||||||
|
|
||||||
|
In the above example we filter away some messages that we are not interested in forwarding on remotely.
|
||||||
|
|
||||||
|
To remove it again:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
chhmc -c syslog -t udp -s remove -h 10.32.64.1
|
||||||
|
```
|
16
doc/rsyslog-auth.md
Normal file
16
doc/rsyslog-auth.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# rsyslog
|
||||||
|
|
||||||
|
Configure rsyslog to forward authentication messages to a remote logging solution. We use *10.32.64.1* as our remote syslog server in this example.
|
||||||
|
|
||||||
|
Create a file new file in the **/etc/rsyslog.d** folder (eg. *90-auth.conf*) with the following content:
|
||||||
|
|
||||||
|
```text
|
||||||
|
# Log authentication messages to remote host
|
||||||
|
auth.info,authpriv.info @10.32.64.1
|
||||||
|
```
|
||||||
|
|
||||||
|
Restart the rsyslog service
|
||||||
|
|
||||||
|
```shell
|
||||||
|
systemctl restart rsyslogd
|
||||||
|
```
|
Loading…
Reference in a new issue