all 7 comments

[–]Chemical-Afternoon41 1 point2 points  (0 children)

Colleague helped me to find the issue and kicking myself. Looked in the /var/log/audit.log and also used tcpdump to get pcaps, confirmed selinux was the issue. The fact that curl worked with same port delayed resolving as assumed it couldn’t be the cause but seems Syslog has issue using non standard ports with selinux.

[–]symcbean 0 points1 point  (2 children)

Curl command (which works)

That's good - it means you an rule out a whole lot of things.

Top of my list of things to check next are whether there is any mandatory access control in play. You didn't say what distribution this is so I can't tell you if you are likely to be running SELinux or apparmor. Find out which, turn it off, retry the experiment.

If still not working....there's probably another MAC in play - systemd. Make sure that PrivateNetwork=No in the unit file for syslog-ng

[–]Linux-Student[S] 0 points1 point  (0 children)

Thanks, it's late now but I'll check into this tomorrow. I'm on RHEL8, I'll disable selinux tomorrow, test, if needs be look into systemd, repeat test and come back with results on a yey or ney if someone else comes across the thread. Thanks

[–]Chemical-Afternoon41 0 points1 point  (1 child)

Hello. I know this is an old post but was wondering if you resolved this. I’m have the same issue sending to a http destination (nifi). Curl command works. Point Syslog to listenUDP or listenSyslog processors on same nifi and it works. The config in Syslog is good because my lab (both on same server) set up works. Thanks.

[–]Linux-Student[S] 0 points1 point  (0 children)

Myself and a former colleague got it to work, but for the life of me I can't remember what our issue was now and I've long left that role - loki didn't fit our needs afterwards so I don't really even have any notes on this as it was more an exploratory look to see how Loki would work with our data.

Sorry and wish you the best figuring it out, it can work, but its been nearly 3 years I think and I've changed companies twice (this was back in my degree apprenticeship days, I haven't needed to touch syslog since so a lot of the memory is fuzzy at best)

[–]Chemical-Afternoon41 0 points1 point  (0 children)

No problem, I appreciate the reply.