mirror of
https://github.com/elastic/logstash.git
synced 2025-04-22 05:37:21 -04:00
29 lines
390 B
Text
29 lines
390 B
Text
input {
|
|
file {
|
|
path => [ "/var/log/messages", "/var/log/*.log" ]
|
|
type => "linux-syslog"
|
|
}
|
|
}
|
|
|
|
filter {
|
|
grok {
|
|
type => "linux-syslog"
|
|
pattern => "%{SYSLOGLINE}"
|
|
}
|
|
|
|
date {
|
|
type => "linux-syslog"
|
|
timestamp => "MMM dd HH:mm:ss"
|
|
timestamp8601 => ISO8601
|
|
}
|
|
}
|
|
|
|
output {
|
|
stdout {
|
|
}
|
|
|
|
elasticsearch {
|
|
index => "logstash"
|
|
type => "%{@type}"
|
|
}
|
|
}
|