Sign inSign up

prameswar/logstash

By prameswar

•Updated about 10 years ago

logstash configuration

Image
1

1.7K

prameswar/logstash repository overview

⁠Logstash

Logstash is an open source data collection engine with real-time pipelining capabilities. Logstash can dynamically parse and ship data of different types inputs, filters, and outputs. It support more than 200 plugins. For more information Read Logstash Documentation⁠

⁠Supported Tags

Logstash Version:

⁠Installation

Pull docker image from Dockerhub⁠ using command

docker pull prameswar/logstash

Above command will install latest version.

OR

You can install older version of Logstash using tag.

docker pull prameswar/logstash:2.2

OR

You can clone repository and build Logstash Dockerfile in your system.

git clone https://github.com/prameswar/logstash.git 
cd 2.3
docker build .

⁠Use Logstash

list docker images

docker images

REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
prameswar/logstash        2.3                 19aa20a050c4        6 days ago          759 MB

Login docker image

docker run -d -ti --name logstash 19aa20a050c4
docker exec -ti logstash /bin/bash

add input, output and filter config file to /etc/logstash/conf.d/

Sample input file

input {
  file {
    type => "syslog"
    path => ["/var/log/auth.log", "/var/log/syslog"]
    start_position => beginning
    sincedb_path => "/dev/null"
  }
}

Sample output file to push logs to elasticsearch

output {
  elasticsearch {
    hosts => "localhost"
  }
}

⁠References

Tag summary

Content type

Image

Digest

Size

334.5 MB

Last updated

about 10 years ago

docker pull prameswar/logstash