Hi All
We are trying to get the incidents which are in open state (ie AlertStatus only equal to CREATE) .
Table Out is below :
Here IncidentID 1414821 has both AlertStatus = CLEAR and CREATE , this Incident ID should not get displayed . We need IncidentID only with Alertstaus = CREATE.
we ran with
| eval IncidentID=case(AlertStatus="CREATE" AND AlertStatus!="CLEAR",IncidentID)
| table IncidentID AlertStatus
When we run an Query it should only Display IncidentID value 1437718
Thanks and Regards
Hi @prakashsbk,
could you share your search?
you should use something like this:
<your_search>
| stats dc(AlertStatus) AS AlertStatus_count values(AlertStatus) AS AlertStatus BY IncidentID
| search AlertStatus_count<2 AND AlertStatus = "CREATE"
| table IncidentID AlertStatus
having your search I could be more detailed.
Ciao.
Giuseppe
Hi @prakashsbk,
could you share your search?
you should use something like this:
<your_search>
| stats dc(AlertStatus) AS AlertStatus_count values(AlertStatus) AS AlertStatus BY IncidentID
| search AlertStatus_count<2 AND AlertStatus = "CREATE"
| table IncidentID AlertStatus
having your search I could be more detailed.
Ciao.
Giuseppe
Thanks a lot for your quick help and support , Query is working as expected.