I have a requirement to define error rates from an AWS ELB. I setup filebeats and used the aws module using the elb fileset and that is working well. I have the data visible in Kabana now.
I then proceed to attempt and define a query that is a count of !(http status code 200) / all. I was not able to do this in Visualizations using a TSVB. Maybe there is a way I did not think of? So I used Timelion. Here is the query:
.es(index=filebeat-*,
timefield='@timestamp',
metric='count:http.response.status_code',
q='fileset.name: "elb" AND !(http.response.status_code:>=200 AND http.response.status_code:<300)')
.divide(
.es(index=filebeat-*,
timefield='@timestamp',
metric='count:http.response.status_code',
q='fileset.name: "elb"')
)
.multiply(100)
.label('Error Rate (%)')
So two questions:
Is it possible to alert on this using watcher?
If not, is it possible to rewrite this in a format watcher can accept?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.