Send Nginx logs to Influx DB

Hello,

I am trying to send Nginx logs (access and errors) to Influx DB store without parsing log files but with the syslog directive. There are two reasons for that :

  1. Log rotation is annoying.
  2. I prefer to have only in-memory actions and no access to the file system.

I tried first to do [Nginx] |network> [Influx DB]

And then I tried [Nginx] |UNIX socket> [rsyslog or syslog-ng] |network> [Influx DB]

Are these two options possible ?

Did anyone succeed to do that ?

Thanks

@ramdam I’ve had great luck using the telegraf logparser for this.