1. Describe your incident:
I am setting up a syslog-ng server to forward received syslogs to Graylog. Graylog can receive forwarded syslogs, but marking the source as the syslog-ng server, not the real host who generates the syslogs originally.
2. Describe your environment:
OS Information:
Red Hat, Inc. 11.0.15 on Linux 4.18.0-348.23.1.el8_5.x86_64
Package Version:
Graylog 4.2.9+f0d8298
Service logs, configurations, and environment variables:
In this syslog message, the source IP is 172.18.1.10, which is the syslog-ng server; and the device generated syslog originally is sxxx.net.uoguelph.ca.
The reason for this was I was thinking if a different input could sort this out ( create that field) or may need to create an Extractor/Pipeline so it places that messages source under a new field.
Yes, I tried Syslog UDP first, then tried RawPlaintext UDP, same result.
The traffic is from the syslog-ng server (172.18.1.10), which is right, but how Graylog knows which syslogs are forwarded, and which ones are generated from the source?
Version 3.13 of syslog-ng introduced a graylog2() destination and a GELF (Graylog Extended Log Format) template to make sending syslog messages to Graylog easier.
We are running syslog-ng 3.5, so an upgrade is required.
I am also thinking “create an Extractor/Pipeline so it places that messages source under a new field”.