Hi Splunk Team,
I'm trying to create a query that uses the payment IDs from one table, and only keeps the payment IDs that have a completed status from another table.
The completed status can happen at a later date so I would like the subsearch to search within 10 days after the original search.
My query seems to work when I search for a specific ID in the subsearch, but when I remove it it returns no results.
I'm also open to not using a join/making this more efficient but I wasn't sure how else to do it!
auditSource="open-banking" auditType="PaymentResponse" | fields detail.ecospendPaymentId, detail.amount | convert num(detail.amount) as amount | table detail.ecospendPaymentId, amount | join type=inner detail.ecospendPaymentId [ search auditSource="open-banking-external-api" auditType="PaymentStatusUpdate" detail.status="Completed" latest=+10d | fields detail.paymentId | rename detail.paymentId as "detail.ecospendPaymentId" ] | dedup "detail.ecospendPaymentId" | table "detail.ecospendPaymentId", amount
Thank you!
... View more