I want to push logs, produced by nginx
to influxdb
.
To handle this, I have an agent, which can format it, extract some geodata, produce geohash, etc..
The problem is that nginx
and agent are running in separate docker
containers, and nginx
is a producer, that is only capable of writing to filesystem, but agent
is only capable of reading from network (eg some tcp stream, websocket or http, as it is usually done in webdev)
I dont want to share access.log volume between containers, wasting space, and long-parsing kilometers of logs..
How to make nginx write log directly to some tcp socket?