I have some issue when sending AIX syslog to siem server, perhaps somebody can advise if I am doing it wrong.
We configured the syslog.conf and added the last line:
*.info;auth.*;mail.none;cron.none @<IP Address>
After adding the last line, we did refresh -s syslogd. However, when I do a tcpdump on the siem server, we did not see any logs coming in.
We have also isolate the issue regarding the firewall as it is the same segment as the AIX. So right now, I am scratching my head and thinking it could be the syslog.conf that could have some error.
Maybe provide us some logfile entries for the local server where syslog is of interest so we can see the exact format of the syslog entries you wish to redirect to another server?
Thanks for the response. Correct me if I'm wrong but when you mention logfile entries, do you mean the log where it writes to? If so, the auth is the most important part of the logs that we would like to capture.
Yes, it would be good if you could post the entries of interest from this logfile above so we can see the data.
When you say the auth entries, that's fine but let's actually see what they are to make sure they are logging locally before worrying about remote logging.
I'm a simple person and tend to troubleshoot things one step-at-a-time, confirming each step along the way.
Sorry for the late reply. Here are some log entries which I have filtered some of the important info away for auth logs:
Auth.Message
Jul 4 11:11:11 abc auth|security:crit sshd[12345678]: fatal: Failed to change password
Jul 3 11:11:15 abc auth|security:crit sshd[12345678]: fatal: Failed to change password
Jun 1 10:59:31 abc auth|security:err|error sshd[12345678]: error: buffer_get_string_ret: bad string length 123456780
Jun 2 10:59:31 abc auth|security:crit sshd[12345678]: fatal: buffer_get_cstring: buffer error
syslog.all.info
Jun 2 10:27:32 abc auth|security:info syslog: ssh: failed login attempt for root from abc.com.sg
Jun 3 10:27:34 abc auth|security:info sshd[23331066]: Accepted password for root from abc port 1234568 ssh
Jun 4 10:29:36 abc user:info ftp[1234567]: ftp: IMPORT user root, host abc.com.sg, local -, remote NULL.
Jun 5 10:29:48 abc user:info ftp[1234567]: ftp: EXPORT user root, host abc.com.sg, local auth.messages, remote auth.messages.
Jun 6 10:29:48 abc user:info ftp[1234567]: ftp: EXPORT user root, host abc.com.sg, local syslog.all.error, remote syslog.all.error.
If syslogd uses gethostbyname then it needs a hostname not an IP address.
The man pages given by @Neo only say "hostname"...
(Currently I do not have access to an AIX system.)
Not once have you show us your syslog.conf file, if it like some of AIX conf file an error at one point will leave the rest to not be taken in account, knowing how it can be delicate to configure correctly under AIX to have all the logs working properly, I would start by something simple that works and add an new line one at a time in order to solve such issue
Then just one log sending to siem server before adding like you did, there is maybe some tricks in syntax you are not respecting
So once a good syslog.conf working locally I would add
auth.info @<IP_address>
and if that work add to it one new item at a time and test each time
Yes in IBM doc I have it says IP address so I don't believe the issue is there
I managed to get it to work. My apologies for not stating the proper information from the start but the IP Address has a port beside it and it seems like syslogd does not like it.
The changed made was from:
*.info;auth.*;mail.none @<IPAddress:514>
to:
*.info;auth.*;mail.none @IPAddress
Really appreciate your help on the advice that was given to me and really sorry to have trouble you all