conkw documentation - TailLogFileGrabber

This grabber will listen to a log file, and extract data from it. It, of course, depends on an instance of LogParser to extract that data from the file.

Use cases

Configuration

{
  "implementation":"net.pieroxy.conkw.webapp.grabbers.logfile.TailLogFileGrabber",
  "config": {
    "filename":"/home/pieroxy/.conkw/logs/http.log",
    "parserClassName":"net.pieroxy.conkw.webapp.grabbers.logfile.parsers.HttpLogFileParser",
    "accumulator":"multi([name(sizehist,log125hist(size,1000,1000000)),name(byct,stablekey(contentType,count(),3)),name(byuri,stablekey(uri,count(),3)),sum(size,0),count(),sum(time,0)])"
  }
}

Extractions for the default http parser

While it may be of some use, the net.pieroxy.conkw.webapp.grabbers.logfile.parsers.HttpLogFileParser is more meant as an example of log parser to help you write your own. It is able to parse conkw http log file. Here is the data it extracts, for each line in the file:

values

For each line, the values extracted are:

dimensions

For each line, the dimensions extracted are: