Splunk Search

transaction group by two IDs

fk319
Builder

I have data that has two IDs for each transaction. Of course most logs have one or the other and only one has both. I tried:

...| transaction ID, ID2 |...

but found that I would sometimes get two transaction records, one with just ID and the other with both ID and IDs.

I could not find an "OR" option, just that the engine would figure it out. Does anyone have some suggestions?

Tags (1)

yannK
Splunk Employee
Splunk Employee

try to add the presence of the 2 fields as a condition before the transactions :

id=* AND id2=* | transaction id id2

0 Karma

fk319
Builder

Then I would not see the details of id or id2, just the link between the two.

fk319
Builder

those work fine, it seams when I have id1 and id2 defined, then id1 and id2 correlated.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

So the following events all form one big transaction?

event1 id=1
event2 id=1 id2=a
event3 id2=a

0 Karma

fk319
Builder

In this case, one ID is external activity and the other ID is internal activity. some where during the transaction there is an a correlation between the two.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

How do the two IDs relate to each other? In other words, how should events be grouped into one transaction?

0 Karma

fk319
Builder

no, more like
event=1 host=a
event=2 cookie=b
event=3 host=a cookie=b

0 Karma

cramasta
Builder

would you say your data set is like this

event=1 host=a
event=2 host=a cookie=b
event=3 cookie=b

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...