Checking logs in AIX

Hello,
I am writing ansible playbooks to check logs in AIX and it is giving me some trouble.
I tried to add the alog-L command into the playbook but it does not work. I would like to

Check to ensure that logging is enabled and sending data to the correct collectors [Parameters - for log-level / classification]

Thanks for your help

alog -o (for output) is perhaps the command you want.

For syslog - your playbook will need to parse /etc/syslog.conf to see where the (sys)logs are being written to.

Other logs - I am thinking "failedlogins" in particular, are 'binary' (who /etc/security/failedlogins).

1 Like