27 lines
450 B
Plaintext
27 lines
450 B
Plaintext
# logstash configuration
|
|
|
|
# Define inputs
|
|
input {
|
|
syslog {
|
|
debug => false
|
|
host => "0.0.0.0"
|
|
port => 5514
|
|
type => "linux-syslog"
|
|
}
|
|
}
|
|
filter {
|
|
grok {
|
|
type => "linux-syslog"
|
|
pattern => "%{SYSLOGLINE}"
|
|
}
|
|
}
|
|
# Define outputs
|
|
output {
|
|
# send events to stdout for easy debugging
|
|
# stdout { debug => true debug_format => "json" }
|
|
|
|
elasticsearch {
|
|
host => "127.0.0.1"
|
|
}
|
|
}
|