2013-07-08 03:07:38 +00:00
|
|
|
SHELL := /bin/bash
|
2013-07-07 23:48:39 +00:00
|
|
|
LOGSTASH_VERSION ?= 1.1.13
|
|
|
|
|
2013-07-08 03:07:38 +00:00
|
|
|
all: lib/logstash-$(LOGSTASH_VERSION)-flatjar.jar
|
2013-07-07 23:48:39 +00:00
|
|
|
|
|
|
|
lib/logstash-$(LOGSTASH_VERSION)-flatjar.jar: lib
|
|
|
|
pushd lib && \
|
|
|
|
curl -L -O http://logstash.objects.dreamhost.com/release/logstash-$(LOGSTASH_VERSION)-flatjar.jar ; \
|
|
|
|
popd
|
|
|
|
|
|
|
|
lib:
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
run-agent: all
|
2013-07-08 03:07:38 +00:00
|
|
|
java -jar lib/logstash-$(LOGSTASH_VERSION)-flatjar.jar agent -f agent.conf
|