What is Logstash
Logstash is an open source product which picks data from multiple sources simultaneously and is used for server-side processing. Logstash transforms data which it picks and then sends to your stash like Elasticsearch.
In common words we can say that it is a log shipping agent that helps in transferring the logs to elasticsearch.
We will install logstash through docker, to install it through docker execute the following command:-
sudo docker run -it -d -p 5044:5044 docker.elastic.co/logstash/logstash:6.5.4
In the above docker command we are running logstash using docker container on port no 5044 in a detached mode .