Monitoring III. @ PPKE

Csillag Tamás <cstamas(a)ppke.hu>
http://cstamas.hu/

HBONE Networkshop 2013, Sopron

Overview

previously on ...

New tools

Graphite

render api

DEMO

render api with external tools

Collectd to graphite

diamond

statsd

logstash

logstash example

extracting HTTP status codes from access logs

84.2.14.200 - - [24/Mar/2013:07:14:25 +0100] "GET /icinga/cgi-bin/status.cgi?hostgroup=all&limit=0&style=hostdetail&noheader&e
mbedded&hostprops=262144&hoststatustypes=12 HTTP/1.1" 401 883 "-" "aNag/2.3.9"

apache regexp

instead use predefined variables

filter {
  grok {
    type => "apache"
    pattern => "%{COMBINEDAPACHELOG}"
  }

  date {
    type => "apache"
    timestamp => "dd/MMM/yyyy:HH:mm:ss Z"
  }
}

output {
  statsd {
    increment => "apache.somewebhost.response.%{response}"
  }
}