Kibana filter query in visualization

i want to execute a query in filter from kibana visualization.
My requirement is as follows.
I am getting response code from apachelog.
I want to draw lines for response code-200
and response code not equal to 200.
How can i achieve it in same visualization

Generally I just do a visualization on all term for HTTP Status code

y Axis = count
x axis = Date histogram
X axis split line = term -> response code

This would display each Response code over a Date histogram making a nice chart.

1 Like

my require ment was only two lines.
one for 200 and one for non 200(404,500 etc and all).
anyways got it done

Can you please share the way you did to achieve it?

do filter subaggregation
respcode:200
another filter
-respcode:200

2 Likes

Excellent. Thank you!