mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- file input, grok and date filters, stdout and elasticsearch outputs.
Works again. Good milestone for the jruby migration!
This commit is contained in:
parent
1e4f70522b
commit
13ec55c86c
1 changed files with 30 additions and 0 deletions
30
etc/agent.conf.example
Normal file
30
etc/agent.conf.example
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
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 {
|
||||||
|
debug => true
|
||||||
|
}
|
||||||
|
|
||||||
|
elasticsearch {
|
||||||
|
index => "logstash"
|
||||||
|
type => "%{@type}"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue