Hi all,
As the title suggests, I'm attempting to configure syslog-ng on an AWS Linux 2 EC2 instance and I should state that I'm quite a novice when it comes to Linux so there were some stumbling blocks getting the syslog server setup but I believe I've got everything running now, unfortunately, I'm running into some error messages when I attempt to configure one of our appliances, a virtualized VMX100, in the same AWS environment, to send its logs to the server.
I confirmed with Meraki support that they could see traffic being sent out via port 514. However, when I configure the s_net source in the syslog-ng.conf file, as soon as I switch the IP address or uncomment the line and enter the IP address of the VMX, the service fails shortly after. Or, if I restart the service, it will fail to start. There seems to be an issue binding the IP address and port. As soon as I comment out the line and go back to the mostly default config, the syslog-ng service runs fine without issues.
Attached is a screenshot of the exact error message I get whenever I try to switch that source to the IP of the VMX100"
some more info:
journalctl -xe
- The result is failed.
Jan 22 18:58:37 ip-addr-here systemd[1]: Unit syslog.socket entered failed state.
Jan 22 18:58:37 ip-addr-here systemd[1]: syslog-ng.service failed.
Jan 22 18:58:37 ip-addr-here dhclient[2880]: XMT: Solicit on eth0, interval 130400ms.
----
Jan 22 18:51:52 ip-ip-addr-here syslog-ng[8939]: syslog-ng starting up; version='3.5.6'
Jan 22 18:51:52 ip-ip-addr-here systemd[1]: Listening on Syslog Socket.
Jan 22 18:51:52 ip-ip-addr-here systemd[1]: Starting Syslog Socket.
Jan 22 18:51:52 ip-ip-addr-here systemd[1]: Starting System Logger Daemon...
Jan 22 18:51:52 ip-ip-addr-here systemd[1]: Started System Logger Daemon.
Jan 22 18:52:39 ip-ip-addr-here dhclient[2880]: XMT: Solicit on eth0, interval 128120ms.
Jan 22 18:54:48 ip-ip-addr-here dhclient[2880]: XMT: Solicit on eth0, interval 108460ms.
Jan 22 18:56:36 ip-ip-addr-here dhclient[2880]: XMT: Solicit on eth0, interval 120920ms.
Jan 22 18:56:50 ip-ip-addr-here syslog-ng[8939]: syslog-ng shutting down; version='3.5.6'
Jan 22 18:56:50 ip-ip-addr-here systemd[1]: Stopping System Logger Daemon...
Jan 22 18:56:50 ip-ip-addr-here syslog-ng[8952]: syslog-ng starting up; version='3.5.6'
Jan 22 18:56:50 ip-ip-addr-here systemd[1]: Stopped System Logger Daemon.
Jan 22 18:56:50 ip-ip-addr-here systemd[1]: Starting System Logger Daemon...
Jan 22 18:56:50 ip-ip-addr-here systemd[1]: Started System Logger Daemon.
Jan 22 18:58:00 ip-ip-addr-here syslog-ng[8952]: syslog-ng shutting down; version='3.5.6'
Jan 22 18:58:00 ip-ip-addr-here systemd[1]: Stopping System Logger Daemon...
Any help would be greatly appreciated!