Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added bash startup script. Closes #35

  • Loading branch information...
commit dc0f71881537364b7cb56611bc6dae650faee0fb 1 parent cafcd70
@josegonzalez authored
Showing with 42 additions and 0 deletions.
  1. +42 −0 contrib/beaver-bash.sh
View
42 contrib/beaver-bash.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+export BEAVER_MODE=connect
+
+## Individual files to send
+#export BEAVER_FILES=/var/log/syslog
+
+## Send all files under path
+#export BEAVER_PATH=/var/log
+
+## Redis
+#export BEAVER_TRANSPORT=redis
+#export REDIS_NAMESPACE='logstash'
+#export REDIS_URL='redis://redis:6379/0'
+
+## ZeroMQ
+#export ZEROMQ_ADDRESS='tcp://indexer:5556'
+
+## RabbitMQ
+#export RABBITMQ_HOST=rabbit
+#export RABBITMQ_PORT=5672
+#export RABBITMQ_VHOST='/'
+#export RABBITMQ_USERNAME='guest'
+#export RABBITMQ_PASSWORD='guest'
+#export RABBITMQ_QUEUE='logstash-queue'
+#export RABBITMQ_KEY='logstash-key'
+#export RABBITMQ_EXCHANGE='logstash-exchange'
+
+AFTER_CRASH_WAIT=20
+
+{
+while true
+do
+ /usr/local/bin/beaver
+ ## If you would prefer to use a config file, use this line instead
+ #exec /usr/local/bin/beaver -c /etc/beaver.conf
+
+ echo "$0: Waiting for $AFTER_CRASH_WAIT seconds before retrying."
+ sleep $AFTER_CRASH_WAIT
+done
+
+} > /var/log/beaver.log 2>&1
Please sign in to comment.
Something went wrong with that request. Please try again.