Tags & Dockerfile
What is Logstash?
Logstash is a tool to collect, process, and forward events and log messages. Collection is accomplished via configurable input plugins including raw socket/packet communication, file tailing, and several message bus clients. Once an input plugin has collected data it can be processed by any number of filters which modify and annotate the event data. Finally logstash routes events to output plugins which can forward the events to a variety of external programs including Elasticsearch, local files and several message bus implementations.
We can use the environmental variable
ELASTICSEARCH to tell Logstash where the Elasticsearch service is.
$ docker run -d --name logstash -p 5044:5044 -e ELASTICSEARCH="elasticsearch-ip" jfusterm/logstash