Alerting

How to set up a real-time alert to trigger every time a certain transaction is completed and include the duration and sourcetype in the email?

debojitb
New Member

Hi,

We are trying to set up an alert which will trigger every time a particular transaction is completed. The alert will send out an email including the duration of that transaction and the sourcetype. What is the simplest way to achieve the above?

Thanks in Advance

0 Karma

sundareshr
Legend

Try something like this

index=* [search index=* earliest=-5m@m status=transactioncomplete | stats count txnId | fields - count] | transaction txnId startswith="status=transactionstart" endswith="status=transactionend" keepevicted=false | table txnId duration

Setup alert based on the results.

0 Karma

debojitb
New Member

I am trying this, but everytime I am getting an error saying the txnId field is invalid in the stats section.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...