Skip to content

Instantly share code, notes, and snippets.

@garlandkr
Last active December 10, 2015 21:48
Show Gist options
  • Save garlandkr/4498095 to your computer and use it in GitHub Desktop.
Save garlandkr/4498095 to your computer and use it in GitHub Desktop.
logstash shipper skipping postfix/smtpd
input {
tcp {
port => 55514
type => "jenkins"
format => json
}
}
filter {
grep {
match => [ "@message", "postfix" ]
negate => true
}
grep {
match => [ "@message", "Connection closed by 127.0.0.1" ]
negate => true
}
}
output {
stdout {
debug => true
debug_format => "json"
}
redis {
host => "127.0.0.1"
data_type => "list"
key => "logstash"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment