Last active
January 21, 2019 18:59
-
-
Save mlabouardy/dfdd9d7b8961f400415bd2ed6183e44b to your computer and use it in GitHub Desktop.
Expost Gelf and UDP inputs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
udp { | |
type => lambda | |
port => 7000 | |
} | |
gelf { | |
type => docker | |
port => 5000 | |
} | |
} | |
filter { | |
if [message] =~ /^{.*}$/ { | |
if [type] == "lambda" {} | |
if [type] == "docker" {} | |
} | |
} | |
output { | |
if [type] == "lambda" { | |
elasticsearch { | |
hosts => 'https://elasticsearch.internal.domain.com:443' | |
index => 'functions-%{+YYYY.MM.dd}' | |
} | |
} else { | |
elasticsearch { | |
hosts => 'https://elasticsearch.internal.domain.com:443' | |
index => 'containers-%{+YYYY.MM.dd}' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment