HUB
Sign inSign up
logstash-oss logo

easypi/logstash-oss

By easypi

•Updated about 23 hours ago

A pure open-source distribution of Logstash licensed entirely under the Apache 2.0 license

Image
Integration & delivery
0

978

easypi/logstash-oss repository overview

⁠logstash-oss

Logstash⁠ is an open source data collection engine with real-time pipelining capabilities.

This image contains: logstash-output-opensearch⁠

⁠How It Works

log files ---> filebeat agent --+
...                             |
log files ---> filebeat agent --+> logstash-oss container ---> opensearch™
...                             |
log files ---> filebeat agent --+

⁠Up and Running

$ docker-compose up -d
$ docker-compose exec logstash bash
>>> logstash-plugin install logstash-output-logservice
Validating logstash-output-logservice
Installing logstash-output-logservice
Installation successful
>>> logstash-plugin list
logstash-output-logservice
>>> exit
$ vim data/pipeline/logstash.conf
$ docker-compose exec logstash kill -HUP 1
$ docker-compose logs -f
$ curl http://localhost:9600
{
  "host": "easypi",
  "version": "9.5.5",
  "http_address": "0.0.0.0:9600",
  "id": "c7c4f9d7-5621-4375-bfc9-96abb0f1b4c3",
  "name": "6848fe4c533f",
  "build_date": "2017-12-17T21:51:17+00:00",
  "build_sha": "d46ca0de31662d29b8c5c94d4162e4c760d3f8fb",
  "build_snapshot": false
}

You can install logstash plugin manually:

  • /usr/share/logstash/vendor/bundle/jruby/2.3.0/specifications/logstash-output-logservice-0.4.0.gemspec
  • /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-logservice-0.4.0/

Caution

[logstash-output-logservice][3] is not maintained anymore, please use [opensearch][4] instead.

⁠Setup Filebeat

# https://www.elastic.co/downloads/beats/filebeat
$ wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-9.5.5-amd64.deb
$ dpkg -i filebeat-9.5.5-amd64.deb
$ vim /etc/filebeat/filebeat.yml
#output.elasticsearch:
  # Array of hosts to connect to.
  #hosts: ["localhost:9200"]
output.logstash:
  # The Logstash hosts
  hosts: ["1.2.3.4:5044"]
$ systemctl start filebeat
$ systemctl enable filebeat

⁠References

Tag summary
Recent tags
Content type
Image
Digest
sha256:51e7d8b8d…
Size
473.2 MB
Last updated
about 23 hours ago
docker pull easypi/logstash-oss:latest