Skip to content

OvalMoney/docker-logstash-fb-es-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Logstash Filebeat In / AWS ES Out

Logstash collector with Filebeat input plugin and AWS ES output plugin

Configuration

Default pipeline config accept these env vars

ENV Default Required
LISTEN_HOST 0.0.0.0 YES
LISTEN_PORT 5044 YES
ES_HOST YES
AWS_REGION YES
ACCESS_KEY NO
SECRET_KEY NO
INDEX_PREFIX logstash NO
input { 
  beats {
    host => "${LISTEN_HOST:0.0.0.0}"
    port => "${LISTEN_PORT:5044}"
  }
}

output {
    amazon_es {
        hosts => ["${ES_HOST}"]
        region => "${AWS_REGION}"
        aws_access_key_id => "${ACCESS_KEY:}"
        aws_secret_access_key => "${SECRET_KEY:}"
        index => "${INDEX_PREFIX:logstash}-%{+YYYY.MM.dd}"
    }
}

To use a different config just mount it on /usr/share/logstash/pipeline/logstash.conf

About

Logstash collector with AWS plugin and Filebeat Plugin

Resources

Stars

Watchers

Forks

Packages

No packages published