moonbuggy / docker-syslog-ng-alpine

An Alpine Linux container running syslog-ng
4 stars 1 forks source link

transform from RFC3164 to rfc5424 #2

Open paolino opened 2 years ago

paolino commented 2 years ago

I'd like to use this container as a bridge to send only rfc5424 to telegraf (influxdb) container.

Is it possible? In the environment I only see I can specify the host and the port but not the format

Thanks

moonbuggy commented 2 years ago

You should be able to mount /etc/syslog-ng/conf.d/ as a volume and add your own config file for any destination you want.

Unfortunately, it's not really possible to add every potential configuration to the environment, there's just too many variations, so the environment is limited by what I use myself and can easily test.

I have contemplated setting up a TIG stack in the past, but haven't got around to it yet. So it may be that a Telegraf/InfluxDB destination appears in the environment at some point in the future. There's no reason, afaik, that the container can't be used in such a scenario already though, just via configuration files rather than the environment.