mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- move stuff around
This commit is contained in:
parent
17575b4fde
commit
ffc0d6b923
1 changed files with 30 additions and 0 deletions
30
etc/examples/indexer.conf
Normal file
30
etc/examples/indexer.conf
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
input {
|
||||||
|
amqp {
|
||||||
|
host => "127.0.0.1"
|
||||||
|
user => "guest"
|
||||||
|
pass => "guest"
|
||||||
|
exchange_type => "topic"
|
||||||
|
name => "testing"
|
||||||
|
type => "all"
|
||||||
|
}
|
||||||
|
|
||||||
|
tcp {
|
||||||
|
port => 1234
|
||||||
|
type => "linux-syslog"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
filter {
|
||||||
|
grok {
|
||||||
|
type => "linux-syslog"
|
||||||
|
pattern => ["%{SYSLOG_SUDO}", "%{SYSLOG_KERNEL}", "%{SYSLOGLINE}"]
|
||||||
|
add_tag => "grok"
|
||||||
|
add_field => ["test_key", "the pid is %{pid}"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
output {
|
||||||
|
stdout {
|
||||||
|
debug => true
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue