box-o-sand/logstash/agent/Makefile

16 lines
385 B
Makefile
Raw Normal View History

SHELL := /bin/bash
LOGSTASH_VERSION ?= 1.1.13
all: lib/logstash-$(LOGSTASH_VERSION)-flatjar.jar
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-$(LOGSTASH_VERSION)-flatjar.jar agent -f agent.conf