Hi All,
Very new to Graylog, but from what I can see it is a great product.
I am trying to get the log file from our routers in via syslog. From what I can see the Ubiquiti routers are outputting the in correct RFC5424 standard but Graylog is not recording them. I am unable to understand why.
The syslog messages are going directed into graylog on UDP 514 and message from other devices eg rsyslog from linux and some cisco switches are parsed incorrectly but are being saved.The Ubiquiti’ routers are just not being accepted and i am unable to figure out why.
If I use a standard raw/string input the data is saved and I can then use extrators to structure the data, but I then need to find a way to convert the facility and level into different fields.
Below is a packet capture of a few syslog messages from the Ubiquiti router to the Graylog server.
root@graylog:~# tcpdump -n -vv -i eth0 port 514 02:33:04.323090 IP (tos 0x0, ttl 62, id 46424, offset 0, flags [DF], proto UDP (17), length 167) 10.49.0.1.38127 > 10.1.8.26.514: [udp sum ok] SYSLOG, length: 139 Facility authpriv (10), Severity info (6) Msg: Oct 30 13:33:04 router sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/iptables -t nat -L UBNT_PFOR_DNAT_RULES -vnx 0x0000: 3c38 363e 4f63 7420 3330 2031 333a 3333 0x0010: 3a30 3420 7062 722d 722d 6231 3120 7375 0x0020: 646f 3a20 2020 2020 726f 6f74 203a 2054 0x0030: 5459 3d75 6e6b 6e6f 776e 203b 2050 5744 0x0040: 3d2f 203b 2055 5345 523d 726f 6f74 203b 0x0050: 2043 4f4d 4d41 4e44 3d2f 7362 696e 2f69 0x0060: 7074 6162 6c65 7320 2d74 206e 6174 202d 0x0070: 4c20 5542 4e54 5f50 464f 525f 444e 4154 0x0080: 5f52 554c 4553 202d 766e 78 02:33:04.324144 IP (tos 0x0, ttl 62, id 46425, offset 0, flags [DF], proto UDP (17), length 127) 10.49.0.1.38127 > 10.1.8.26.514: [udp sum ok] SYSLOG, length: 99 Facility authpriv (10), Severity info (6) Msg: Oct 30 13:33:04 router sudo: pam_unix(sudo:session): session opened for user root by (uid=0) 0x0000: 3c38 363e 4f63 7420 3330 2031 333a 3333 0x0010: 3a30 3420 7062 722d 722d 6231 3120 7375 0x0020: 646f 3a20 7061 6d5f 756e 6978 2873 7564 0x0030: 6f3a 7365 7373 696f 6e29 3a20 7365 7373 0x0040: 696f 6e20 6f70 656e 6564 2066 6f72 2075 0x0050: 7365 7220 726f 6f74 2062 7920 2875 6964 0x0060: 3d30 29 02:33:04.328722 IP (tos 0x0, ttl 62, id 46426, offset 0, flags [DF], proto UDP (17), length 116) 10.49.0.1.38127 > 10.1.8.26.514: [udp sum ok] SYSLOG, length: 88 Facility authpriv (10), Severity info (6) Msg: Oct 30 13:33:04 router sudo: pam_unix(sudo:session): session closed for user root 0x0000: 3c38 363e 4f63 7420 3330 2031 333a 3333 0x0010: 3a30 3420 7062 722d 722d 6231 3120 7375 0x0020: 646f 3a20 7061 6d5f 756e 6978 2873 7564 0x0030: 6f3a 7365 7373 696f 6e29 3a20 7365 7373 0x0040: 696f 6e20 636c 6f73 6564 2066 6f72 2075 0x0050: 7365 7220 726f 6f74
Any help that could be provided would be fantastic!
Thanks in Advance.