Dashboards & Visualizations

email Alert with table values

4uramana4u
Explorer

 

Sending email alert when the error count > 0 results;  but how can include table data/values in the email alert? 

( table _time, ERROR_CD, HAWB, UREF, LRN, MRN, ER1_ER9_Details )

Query: 

index=gbs_its_openshift_exp-ics2 openshift_container_name="regulatory-engine" "ER1/ER9 errors"
| rex field=_raw "uref:(?<UREF>\w+)"
| rex field=_raw "hawb:(?<HAWB>\w+)"
| rex field=_raw "lrn:(?<LRN>\w+)"
| rex field=_raw "mrn:(?<MRN>\w+)"
| rex field=_raw "rrr:(?<RRR>\w+)"
| rex field=_raw "ER1\/ER9\serrors:(?<ER1_ER9_Details>.+)"
| rex field=_raw "Err-\[(?<ERROR_CD>\w*)\]"
| table _time, ERROR_CD, HAWB, UREF, LRN, MRN, ER1_ER9_Details
| stats count
| search count > 0

Labels (1)
Tags (1)
0 Karma

4uramana4u
Explorer

This is working!!

| stats count as ERROR_CNT by ERROR_CD, UREF, HAWB, LRN, MRN, ER1_ER9_Details | where ERROR_CNT>0

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...