Evening everyone,
Just started out with fluentd and I'm trying to get one of my ADSL routers to log to it which is working but annoyingly the router doesn't send either the hostname or date/time in the syslog message, for example:
May 31 20:36:37 kernel: klogd started: BusyBox
May 31 20:36:40 kernel: PacketFilter: Drop SPT=12345 DPT=443 LEN=51 UDP packet from [br0] x.x.x.x:12345 to x.x.x.x:443
The date/time isn't an issue as fluentd sorts this out by itself but how can I record the source IP (or hostname) of the device sending the event. Is it possible for fluentd to read this from the TCP/UDP packet header or does it just rely on the info contained in the message?
I'm currently using the in_syslog plugin and have set format to 'none' to get the basic message output to a file. Tried using the record_reformer plugin and adding the {$hostname} variable but that is obviously just the host running fluentd.
Thanks for any help.
Lee