20 lines
430 B
Makefile
20 lines
430 B
Makefile
LOGSTASH_VERSION ?= 1.1.13
|
|
|
|
all: lib/logstash.jar
|
|
|
|
|
|
lib/logstash.jar: lib/logstash-$(LOGSTASH_VERSION)-flatjar.jar
|
|
pushd lib && ln -sv $(notdir $^) $(notdir $@) ; popd
|
|
|
|
|
|
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
|
|
java -jar lib/logstash.jar agent -f agent.conf
|