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!

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!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

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