Goofing around with a POC Go -> Logstash setup

This commit is contained in:
2013-07-07 19:48:39 -04:00
parent fa0de5c394
commit 7673a09604
5 changed files with 68 additions and 0 deletions

19
logstash/agent/Makefile Normal file
View File

@@ -0,0 +1,19 @@
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 conf/shipper.conf

View File

@@ -0,0 +1,14 @@
input {
tcp {
message_format => "json"
port => 55784
type => "fried"
}
}
output {
stdout {
debug => true
debug_format => "json"
}
}