mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- add some example configs
This commit is contained in:
parent
4d676dc28f
commit
cb11e9ec5c
3 changed files with 53 additions and 0 deletions
22
etc/examples/agent-nagios.conf
Normal file
22
etc/examples/agent-nagios.conf
Normal file
|
@ -0,0 +1,22 @@
|
|||
input {
|
||||
stdin { type => "foo" }
|
||||
}
|
||||
|
||||
filter {
|
||||
grep {
|
||||
type => "foo"
|
||||
match => [ "@message", ".*" ]
|
||||
add_fields => [ "nagios_host", "%{@source_host}" ]
|
||||
add_fields => [ "nagios_service", "example service" ]
|
||||
add_fields => [ "nagios_annotation", "my annotation" ]
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
stdout {
|
||||
}
|
||||
|
||||
nagios {
|
||||
commandfile => "/tmp/cmdfile"
|
||||
}
|
||||
}
|
18
etc/examples/agent-stomp.conf
Normal file
18
etc/examples/agent-stomp.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
input {
|
||||
stdin { }
|
||||
stomp {
|
||||
host => "localhost"
|
||||
destination => "/topic/foo"
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
stdout {
|
||||
debug => true
|
||||
}
|
||||
|
||||
stomp {
|
||||
host => "localhost"
|
||||
destination => "/topic/foo"
|
||||
}
|
||||
}
|
13
etc/examples/agent-twitter.conf
Normal file
13
etc/examples/agent-twitter.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
input {
|
||||
twitter {
|
||||
user => "jls_api"
|
||||
password => "Eif9oa8c"
|
||||
keywords => ["http", "https"]
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
stdout {
|
||||
debug => true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue