it's not working as I expect it. I had already knew how to do the description. To simplify, I creating a script for whether it is up or down. If there are no failed alerts, then it is up. I am creating an event for up or down. If their down, I need to add the list of down host to the description. I can't use my stuff but this was enough to give a better understanding.
index=myindex message=" failed*"
| table host
| dedup host
| append
[| makeresults annotate=true
| eval host="Dummy"
| table host]
|eventstats count
| eval status = if(count<2,"UP","DOWN")
| eval severity = if(status="DOWN","Critical","Normal")
| eval multiplehost=mvjoin(host, ", ")
| eval msg=if(severity="Critical","Host Have Failed", "Host are Successful")
| eval description=if(severity="Critical",multiplehost,"").msg
I have tried different commands to join it and placed it in various places. I can't seem to get it to add them together into (host1,host2,host3) in a description.
... View more