Splunk Search

transaction with 2 different valued ID's

BenThwaites
Explorer

I have a set of wordpress tables I'm trying to build a transaction on. I have the following which is working well and placing wp_postmeta, wp_posts and wp_order_itemsmeta within a single transaction.

index=onstone (sourcetype="wp_order_items" OR sourcetype="wp_postmeta" OR sourcetype="wp_posts" OR sourcetype="wp_order_itemsmeta")
| eval id=coalesce(order_id,post_id, ID) 
| transaction id

However within wp_order_items there is the field 'order_item_id' which points to events within wp_order_itemsmeta which i need included within the transaction.

So essentially if i take below as an example, i have event1 and event2 in my transaction but i need event 3 in there as well.

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

I've had a good hunt around and tried a combination of a few different things like including order_item_id ( | transaction id, order_item_id ) in the transaction command and running another transaction command after running the first transaction command with keeporphans=true but nothing seems to be doing the trick.

Any help would be much appreciated.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...