Splunk Search

Transaction with multiple sourcetype

cafissimo
Communicator

Hello, please, I would like to know if it is possible to use multiple and different sourcetypes with the splunk "transaction" command.

Thanks and kind regards.

Luca Caldiero Consoft Sistemi S.p.A.

0 Karma
1 Solution

LCM
Contributor

I guess it's similar to this one: http://answers.splunk.com/questions/3994/multiple-transactions-in-a-single-search

gkanapathy mentioned several sourcetypes with one transaction command

View solution in original post

ziegfried
Influencer

What the transaction command does is simply grouping/merging events with the same value of the specified field(s) into one event. sourcetype is just another field for this command. So a simple search like this would create transaction events from multiple sourcetypes:

sourcetype=my_sourcetype1 OR sourcetype=mysourcetype2 | transaction myTransactionField

The only thing that matters is that the content of the field(s) used to build the transaction has the same value in those events that should get merged.

0 Karma

cafissimo
Communicator

Thanks to both of you.

0 Karma

LCM
Contributor

I guess it's similar to this one: http://answers.splunk.com/questions/3994/multiple-transactions-in-a-single-search

gkanapathy mentioned several sourcetypes with one transaction command

Get Updates on the Splunk Community!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...