mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- Add simpler runner scripts for testing configs. Uses new agent '-e'
flag
This commit is contained in:
parent
a2ca1c7dcb
commit
0753c65331
2 changed files with 42 additions and 0 deletions
31
test/conf/stdin-amqp-stdout.sh
Normal file
31
test/conf/stdin-amqp-stdout.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "Usage: $0 <command>"
|
||||
|
||||
echo "Example: $0 java -jar logstash-1.0.12.jar"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
output='
|
||||
output {
|
||||
amqp {
|
||||
host => "localhost"
|
||||
exchange_type => "fanout"
|
||||
name => "logstash"
|
||||
}
|
||||
} '
|
||||
|
||||
input='
|
||||
input {
|
||||
amqp {
|
||||
type => "amqpexample"
|
||||
host => "localhost"
|
||||
exchange_type => "fanout"
|
||||
name => "logstash"
|
||||
}
|
||||
} '
|
||||
|
||||
"$@" agent -e "$output" -- agent -e "$input"
|
||||
#"$@" agent -e "$output"
|
||||
#"$@" agent -e "$input"
|
11
test/conf/stdin-to-elasticsearch.sh
Normal file
11
test/conf/stdin-to-elasticsearch.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "Usage: $0 <command>"
|
||||
|
||||
echo "Example: $0 java -jar logstash-1.0.12.jar"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
output='output { elasticsearch { embedded => true } }'
|
||||
"$@" agent -e "$output"
|
Loading…
Add table
Add a link
Reference in a new issue