graylog2-server
graylog2-server copied to clipboard
Include Input friendly name in server.log
What?
Currently, the input-related logs included in server.log only mention the input's type (Beats, Syslog UDP, etc.) and unique identifier (e.g. 60c7794fst234c21ce2418fb) - see sample below.
The purpose of this Feature Request to add the input's friendly name in the logs (the name chosen by the user who created the input). This would be especially helpful for those admins that manage multiple inputs.
Current logs format :
2022-08-31T12:55:15.568+01:00 ERROR [AbstractTcpTransport] Error in Input [Beats/60c7794fst234c21ce2418fb] (channel [id: 0x4285ee06, L:/10.10.10.10:111 ! R:/10.10.10.10:10000]) (cause io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer)
2022-09-01T09:01:08.158+01:00 INFO [InputStateListener] Input [Syslog UDP/607839f87cb5775dlkbd895c] is now RUNNING
2022-09-01T09:01:08.306+01:00 INFO [InputStateListener] Input [Raw/Plaintext UDP/5ee3zoe9d809a24f3c2e5f24] is now RUNNING
2022-09-01T09:06:13.582+01:00 ERROR [AbstractTcpTransport] Error in Input [Beats/60c779493f234c21lsk418fb] (channel [id: 0xfa1fa158, L:/10.10.10.10:122 ! R:/10.10.10.10:12345]) (cause io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer)
Suggested logs format (notice the addition of the friendly name right after the unique identifier) :
2022-08-31T12:55:15.568+01:00 ERROR [AbstractTcpTransport] Error in Input [Beats/60c7794fst234c21ce2418fb/Workstations] (channel [id: 0x4285ee06, L:/10.10.10.10:122 ! R:/10.10.10.10:12345]) (cause io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer)
2022-09-01T09:01:08.158+01:00 INFO [InputStateListener] Input [Syslog UDP/607839f87cb5775dlkbd895c/Fortinet] is now RUNNING
2022-09-01T09:01:08.306+01:00 INFO [InputStateListener] Input [Raw/Plaintext UDP/5ee3zoe9d809a24f3c2e5f24/Misc Input] is now RUNNING
2022-09-01T09:06:13.582+01:00 ERROR [AbstractTcpTransport] Error in Input [Beats/60c779493f234c21lsk418fb/Windows Servers] (channel [id: 0xfa1fa158, L:/10.10.10.10:122 ! R:/10.10.10.10:12345]) (cause io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer)
Your Environment
- Graylog Version: 4.3.5