Splunk Search

Find Transaction time with same startswith log string.

sethuk555
Engager

Hi,

I need to find the transaction time between these 2 statements which has same startswith Log strings(different endswith) and hence its ignoring the first event.

2014-07-04 09:48:00-System Up - Node1 is down
2014-07-04 09:43:00-System Up

How could I find the transaction time between these 2 events.

Tags (1)
0 Karma

somesoni2
Revered Legend

My suggestion would be to create a field called message which will store the message after "System Up -", so that it would be blank/null for 2nd event and you can use that as startswith (different in both entries).

something like this

Your base search | rex "System Up\s*-\s*(?<message>.*)$" | transaction startswith="System Up AND NOT message=*" endswith="System Up message=*"
0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...