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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...