logstash-relay
Version:
A simple NodeJS service to relay JSNLogs or Log4Javascript/Log4JS(client) event messages to Logstash.
29 lines (28 loc) • 497 B
Plain Text
input {
# Sample input over UDP
udp {
codec => json
port => 5050
type => client_error
}
}
output {
if [type] == "client_error" {
stdout {
codec => json
}
elasticsearch {
id => "client_error_relay"
index => "client_errors-%{+YYYY.MM.dd}"
hosts => ["128.0.0.1:9200"] # Use the internal IP of your Elasticsearch server
# for production
}
}
}
filter {
if [type] == "client_error" {
json {
source => "message"
}
}
}