- Add simpler runner scripts for testing configs. Uses new agent '-e'

flag
This commit is contained in:
Jordan Sissel 2011-07-01 17:14:30 -07:00
parent a2ca1c7dcb
commit 0753c65331
2 changed files with 42 additions and 0 deletions

View 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"

View 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"