OpenBazaar/OpenBazaar — pull request #423 by y12studio (2014-09-05 09:07:36+00:00)
Title: A OpenBazaar network node log monitor utility

Base on docker with the ELK (Elasticsearch, Logstash and Kibana) stack.
Install docker and fig first.
Run a nodex2/seedx1/elkx1 testing network.
```
$ git clone https://github.com/OpenBazaar/OpenBazaar && cd OpenBazaar
$ cd test/docker/logelk
$ bash build.sh
$ sudo fig up -d
$ sudo fig logs
```

kibana : http://DOCKER_HOST:9280

![ob-logelk-tool](https://cloud.githubusercontent.com/assets/1840874/4162489/c725d312-34db-11e4-8638-2d2e00971d2f.png)

elasticsearch : http://DOCKER_HOST9200

elasticsearch example.

find host:ob1 event

http://DOCKER_HOST:9200/_search?q=host:ob1&pretty

find host:ob2 event with loglevel=ERROR

http://DOCKER_HOST:9200/_search?q=host:ob2 AND level:ERROR&pretty

find host:ob1 event with load/midterm > 1.0

http://DOCKER_HOST:9200/_search?q=host:ob1 AND collectd_type:load AND midterm:>1.0&pretty"