- use %VERSION% instead

This commit is contained in:
Jordan Sissel 2011-08-17 18:40:53 -07:00
parent 642fac23ad
commit 41e005cc0c
5 changed files with 14 additions and 14 deletions

View file

@ -89,20 +89,20 @@ plugin tree is. In our case, it's the current directory.
If you use the monolith jar release of logstash, you have an additional option If you use the monolith jar release of logstash, you have an additional option
- you can include the plugin right in the jar file. - you can include the plugin right in the jar file.
% jar -uf jar -uf logstash-1.0.5-monolithic.jar logstash/filters/foo.rb % jar -uf jar -uf logstash-%VERSION%-monolithic.jar logstash/filters/foo.rb
# Verify it's in the right location in the jar! # Verify it's in the right location in the jar!
% jar tf logstash-1.0.5-monolithic.jar | grep foo.rb % jar tf logstash-%VERSION%-monolithic.jar | grep foo.rb
logstash/filters/foo.rb logstash/filters/foo.rb
% java -jar logstash-1.0.5-monolithic.jar agent -f example.conf % java -jar logstash-%VERSION%-monolithic.jar agent -f example.conf
## Example running ## Example running
In the example below, I typed in "the quick brown fox" after running the java In the example below, I typed in "the quick brown fox" after running the java
command. command.
% java -jar logstash-1.0.5-monolithic.jar agent -f example.conf % java -jar logstash-%VERSION%-monolithic.jar agent -f example.conf
the quick brown fox the quick brown fox
2011-05-12T01:05:09.495000Z stdin://snack.home/: Hello world! 2011-05-12T01:05:09.495000Z stdin://snack.home/: Hello world!

View file

@ -90,7 +90,7 @@ correct dependency. Make sure you have the recent-enough versionf of libpcre
and tokyocabinet (see above grok/INSTALL url) and tokyocabinet (see above grok/INSTALL url)
(This next step can be skipped if you are using a logstash jar release (This next step can be skipped if you are using a logstash jar release
(logstash-X.Y.jar, etc) Once you have grok installed, you need to install the (logstash-%VERSION%.jar, etc) Once you have grok installed, you need to install the
'jls-grok' rubygem, which you can do by running: 'jls-grok' rubygem, which you can do by running:
{{{ {{{
@ -152,7 +152,7 @@ Here's a good sample config:
Put this in a file and call it 'myshipper.conf' (or anything, really), and run: Put this in a file and call it 'myshipper.conf' (or anything, really), and run:
java -jar logstash-1.0-monolithic.jar agent -f myshipper.conf java -jar logstash-%VERSION%-monolithic.jar agent -f myshipper.conf
This should start tailing the file inputs specified above and ships them out This should start tailing the file inputs specified above and ships them out
over amqp. If you included the 'stdout' output you will see events written to over amqp. If you included the 'stdout' output you will see events written to
@ -230,7 +230,7 @@ Run this on the same server as your elasticsearch server.
To run the logstash web server, just run the jar with 'web' as the first To run the logstash web server, just run the jar with 'web' as the first
argument. argument.
% java -jar logstash-1.0-monolithic.jar web % java -jar logstash-%VERSION%-monolithic.jar web
>> Thin web server (v1.2.7 codename No Hup) >> Thin web server (v1.2.7 codename No Hup)
>> Maximum connections set to 1024 >> Maximum connections set to 1024
>> Listening on 0.0.0.0:9292, CTRL+C to stop >> Listening on 0.0.0.0:9292, CTRL+C to stop
@ -241,4 +241,4 @@ logs!
Note: If your elasticsearch server is not discoverable with multicast, you can Note: If your elasticsearch server is not discoverable with multicast, you can
specify the host explicitly using the --backend flag: specify the host explicitly using the --backend flag:
% java -jar logstash-1.0-monolithic.jar web --backend elasticsearch://myserver/ % java -jar logstash-%VERSION%-monolithic.jar web --backend elasticsearch://myserver/

View file

@ -71,7 +71,7 @@ Put this in a file called "mylogstash.conf"
Now run it all: Now run it all:
java -jar logstash-1.0-monolithic.jar agent -f mylogstash.conf -- web --backend elasticsearch:///?local java -jar logstash-%VERSION%-monolithic.jar agent -f mylogstash.conf -- web --backend elasticsearch:///?local
Point your browser at <http://yourserver:9292> and start searching! Point your browser at <http://yourserver:9292> and start searching!

View file

@ -16,11 +16,11 @@ it, use it the same way as documented below for 'normal runnable jar'
### web interface ### web interface
java -jar logstash-0.9.1.jar web java -jar logstash-%VERSION%-monolithic.jar web
### agent ### agent
java -jar logstash-0.9.1.jar agent -f youragent.conf java -jar logstash-%VERSION%-monolithic.jar agent -f youragent.conf
## 'gem install logstash' ## 'gem install logstash'

View file

@ -35,9 +35,9 @@ for such things, that works for me, too.)
logstash releases come in a few flavors. logstash releases come in a few flavors.
* [Monolithic jar](http://semicomplete.com/files/logstash/logstash-1.0.14-monolithic.jar) * [Monolithic jar](http://semicomplete.com/files/logstash/logstash-%VERSION%-monolithic.jar)
* [rubygem](http://rubygems.org/gems/logstash/versions/1.0.14) * [rubygem](http://rubygems.org/gems/logstash/versions/%VERSION%)
* [`gem install logstash -v 1.0.14`](http://rubygems.org/gems/logstash) * [`gem install logstash -v %VERSION%`](http://rubygems.org/gems/logstash)
## What's next? ## What's next?