Hi. I use Nomad for running docker instances as well as running go binaries. I want to have a unified way to get logs from nomad without writing it to file.
My requirements are:
- Nomad should not write logs to file (I don’t want any agents on the same machine)
- Services running under nomad must write logs to stdout (I don’t want services to write logs directly to logstash)
- Be able to get all the logs by one of the protocols: tcp, udp, websockets (for now I’m pulling logs from nomad’s HTTP streaming API)
It would be nice if nomad could send logs to an configurable writable interface. It doesn’t really must know if the logs sent to file or to network… if we use interfaces…
If it isn’t possible, can I use websockets API to get the logs? And again, nomad should not write files…
Thanks!