marking origin of logs in logstash
I send logs from my Docker containers to Logstash via netcat to tcp port.
Their format is mostly similar, so pattern-matching is not very well suitable.
Is there a way to send those logs with a tag, being a name of docker container they originate from?
One Solution collect form web for “marking origin of logs in logstash”
Why not use something like tiller to write out your Logstash configuration dynamically, and add a tag to the outbound log stream?
You could then use an ENTRYPOINT statement to kick off the tiller script, write out the config, and start your Logstash forwarder.