Splunk Search

Transitive Transaction attributes

bleinfelder
Path Finder

Hi there,

I'm doing analysis on file transfer logs from different transfer system. I want to follow the file through the different systems, and unfortunately they change their names every now and then. Meanwhile I normalized all the relevant fields, so I have events like that:

sourcefile=aafile destfile=aafile

sourcefile=aafile destfile=bbfile

sourcefile=bbfile destfile=ccfile

sourcefile=ccfile destfile=ddfile

I want all these events grouped into one transaction. So far, with " | transaction sourcefile destfile", whenever the filename changes, a new transaction starts.

I found similar questions here, but no answer. Any help?

Regards,

Bernd

Tags (1)
0 Karma
1 Solution

bleinfelder
Path Finder

Hi there,

I found a solution for this: Create a multivalued field that contains sourcefile and destfile and make the transaction with that field:

sourcetype=mysourcetype| eval txattrib=mvappend(sourcefile,null,destfile) | transaction txattrib

With that expression, all four events are grouped to one transaction.

Regards,

Bernd

View solution in original post

0 Karma

bleinfelder
Path Finder

Hi there,

I found a solution for this: Create a multivalued field that contains sourcefile and destfile and make the transaction with that field:

sourcetype=mysourcetype| eval txattrib=mvappend(sourcefile,null,destfile) | transaction txattrib

With that expression, all four events are grouped to one transaction.

Regards,

Bernd

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...