I have written below query to fetch the pod count for a particular application as below:
index="stream_data" sourcetype="kube:container:stream_app" | search pod="data-app-streams-*" | stats dc(pod) as pod_count
I have set the duration for this alert as 15 min. However, the pod count shown by this query comes to 2 because it gives the logs for the busy pods only. But the actually running pods are 4. Here pod is the already available field.
Can anyone suggest another approach for finding the actual pod count