-
Notifications
You must be signed in to change notification settings - Fork 6
Logstash
Ric Lister edited this page May 23, 2013
·
1 revision
Logstash source type graphs number of hits for a given search string over time, similar to the histogram display in kibana.
target
is a search string in Lucene syntax, exactly as it would appear in logstash.
For example:
Dash.stats()
.config({
type: 'logstash',
renderer: 'bar'
})
.add(
{
title: 'HEAD requests',
target: '@source_host:prod-fe @source_path:/opt/nginx/logs/access.log @fields.verb:HEAD'
},
{
title: 'GET requests',
target: '@source_host:prod-fe @source_path:/opt/nginx/logs/access.log @fields.verb:GET'
},
{
title: 'POST requests',
target: '@source_host:prod-fe @source_path:/opt/nginx/logs/access.log @fields.verb:POST'
}
);
Logstash requires multiple requests to populate data spanning multiple dates. Until dashiki is modified to support this, only the most recent date's data will be displayed.