logging at databox

11
Logging @ Databox Oto Brglez / @otobrglez

Upload: oto-brglez

Post on 21-Aug-2015

79 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Logging at Databox

Logging @ DataboxOto Brglez / @otobrglez

Page 2: Logging at Databox

What is logging?/../ Logging, or commercial logging, involves cutting trees for sale as timber or pulp. The timber is used to build homes, furniture, etc and the pulp is used to make paper and paper products. Logging is generally categorized into two categories: selective and clear-cutting.

Selective logging is selective because loggers choose only wood that is highly valued, such as mahogany.

Clear-cutting is not selective. Loggers are interested in all types of wood and therefore cut all of the trees down, thus clearing the forest, hence the name- clear-cutting. /../

Page 3: Logging at Databox

Logs

● System logs (syslog, syslog-ng,..● Services (nginx, mysql, cassandra,... )● Applications

○ Errors (php-fpm /var/log/php-fpm/… )○ “Events” (/var/log/my_app.log)

Page 4: Logging at Databox

Architecture @ Databox

new

… more servers ...

*.log logstash forwarder

<-->lumberjackprotocol log.databox.

comlogstash elastic

search

Page 5: Logging at Databox

Logstash Forwarder

Page 6: Logging at Databox

Logstash

● input (lumberjack, redis, *MQ,..)

● filter (gork)● output (elasticsearch,

redis, …)

Page 7: Logging at Databox

ElasticSearch

● Search server● RESTful● JSON documents● Lucene based● Highly scalable● Java based● Apache License w/

Vendor

Page 8: Logging at Databox

Kibana

/../ Kibana is an open source data visualization platform that allows you to interact with your data through stunning, powerful graphics that can be combined into custom dashboards that help you share insights from your data far and wide. /../

Page 10: Logging at Databox

Tips

● Log more!!!○ Log important steps○ Log exceptions○ Log errors○ Log events○ Log *

● Make sure crashes are recorded somewhere and that we all know about it!

Page 11: Logging at Databox

Thanks!

● Questions?

@otobrglez