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?

  • NodeJS - Get unique devicefingerprint
  • what is the alpine linux equivalent package of ubuntu's libarmadillo-dev? [closed]
  • Run Teampass in docker with a running nginx proxy
  • Apache Marathon/Docker Swarm: containers keep repeating
  • How to give my desktop Ubuntu machine's user full permissions to a docker volume, in addition to TWO users within the docker container?
  • Cannot ssh to server as I install poste.io on OVH dedicated server
  • I found an image on docker hub that I like but doesn't meet my needs. How do I update it and make it my own?
  • Can I build a docker image from an existing database container?
  • Kubernetes: Getting the IP Addresses of Other Pods on the Network
  • hazelcast docker container can't run continuously
  • ONBUILD in nestled builded Docker images
  • Docker - Can't push on my registry when using S3 configuration
  • 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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.