logstash/docs/tutorials/10-minute-walkthrough/index.md
Aaron Mildenstein 3986158bac First pass at cleaning out logstash web
All internal references, flags, kibana, vendor, everything must go!

If it referenced kibana or logstash-web, it is deprecated, and removed!

Operators are standing by...

Fixes #2661
2015-02-20 22:53:18 +00:00

2.5 KiB

title layout
Logstash 10-Minute Tutorial content_right

Logstash 10-minute Tutorial

Step 1 - Download

Download logstash:

Unpack it

tar -xzf logstash-%VERSION%.tar.gz
cd logstash-%VERSION%

Requirements:

  • Java

The Secret:

Logstash is written in JRuby, but I release standalone jar files for easy deployment, so you don't need to download JRuby or most any other dependencies.

I bake as much as possible into the single release file.

Step 2 - A hello world.

Download this config file:

Run it:

bin/logstash agent -f hello.conf

Type stuff on standard input. Press enter. Watch what event Logstash sees. Press ^C to kill it.

Step 3 - Add ElasticSearch

Download this config file:

Run it:

bin/logstash agent -f hello-search.conf

Same config as step 2, but now we are also writing events to ElasticSearch. Do a search for * (all):

curl 'http://localhost:9200/_search?pretty=1&q=*'

Download

Run it

bin/logstash agent -f apache-parse.conf

Logstash will now be listening on TCP port 3333. Send an Apache log message at it:

nc localhost 3333 < apache_log.1

The expected output can be viewed here: step-5-output.txt

Same as the previous step, but we'll output to ElasticSearch now.

Download

Run it

bin/logstash agent -f apache-elasticsearch.conf

Logstash should be all set for you now. Start feeding it logs:

bzip2 -d apache_log.2.bz2

nc localhost 3333 < apache_log.2

Want more?

For further learning, try these: