bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.71k stars 1.48k forks source link

Adding GELF logging protocol for logDestinations #3429

Closed Creepios closed 2 months ago

Creepios commented 3 months ago

Describe the feature

Implement the feature, that you can publish log ("logDestinations") with GELF protocol (Graylog Extended Log Format) to a remote log server. https://go2docs.graylog.org/current/getting_in_log_data/gelf.html In my opinion, it would be very useful that you can live analyze logs in a very clearly arranged software like Graylog, especially when you have multiple mediamtx application running at the same time.

Creepios commented 3 months ago

Alternative would be that you can publish it also with remote syslog protocol

aler9 commented 2 months ago

Hello, Graylog already supports ingesting MediaMTX logs through systemd. The GELF format would be an improvement since it allows to pass structured data in place of plain strings. We are currently not generating structured data, but if we do it in the future, we would probably use the fluentd protocol since fluentd is released under a a more permissive license than Graylog's.