Skip to content

Instantly share code, notes, and snippets.

View epu's full-sized avatar

Erik M. Purins epu

View GitHub Profile
@epu
epu / logstash.cmd
Last active December 24, 2015 10:09
logstash cmd file wrapper based around the cookbook. had to forward slash --config file option (bug? --log works ok..)
:: http://cookbook.logstash.net/recipes/windows-service/
@setlocal
@set LOGSTASH_DIR=%~dp0
:: it would be nice to symlink the jar into logstash.jar with mklink, so name never changes. -epu
@set LOGSTASH_JAR=%LOGSTASH_DIR%logstash-1.2.1-flatjar.jar
@set LOGSTASH_CONF=%LOGSTASH_DIR%%~n0.conf
:: I know, right? the logger log!
@set LOGSTASH_LOG=%LOGSTASH_DIR%%~n0.log
:: Why did we set this? Why forward slashing?
@set HOME=c:/logstash/sincedb