177k views
0 votes
How to further filter this search by status?

index=web status IN ("200", "404", "500")
| stats count by status

User Zeroid
by
7.7k points

1 Answer

2 votes

Final answer:

To further filter the search results by status, you can add an additional condition using the 'AND' operator.

Step-by-step explanation:

To further filter this search by status, you can add another condition to the search query by using the 'AND' operator. Here's an example:

index=web status IN ("200", "404", "500") AND status="200" | stats count by status

This will retrieve results where the status is both '200' and '200', effectively filtering the search results by status.

User Shibualexis
by
7.9k points

No related questions found