Splunk Dev

Search String for all users that have two particular Jboss messages

iambobwall
New Member

Here is my original Jboss search string variables:

index=bob
CLASS="bobclass"
MESSAGE="bobmessage1"
MESSAGE="bobmessage2"
TRANSACTION

I am trying to make a dashboard that will show me the results when a user gets two particular jboss messages within the same transaction. I am thinking about starting the search on the CLASS, sort by TRANSACTION and if both MESSAGEs are in the particular TRANSACTION then that will count as a successful user transaction.

index=bob CLASS="bobclass"|sort by TRANSACTION

But from here I am at a loss how to sort it out.

0 Karma

somesoni2
Revered Legend

Give this a try

index=bob CLASS="bobclass" MESSAGE="bobmessage1" OR MESSAGE="bobmessage2" TRANSACTION
| stats values(MESSAGE) as MESSAGE by TRANACTION userFieldName | where mvcount(MESSAGE)=2
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 ...