Splunk Search

subsearch for sendmail logs

splunkranger
Path Finder

Do you see anything wrong with this search? The subsearch returns results, however combined with the out search no results are returned. What am I missing?

index=sendmail qid=* [search eventtype=smimta_to to="user@host.com" | fields qid] | transaction
qid | table _time host qid from to subject

Tags (1)
0 Karma

MuS
Legend

Hi splunkranger,

your subsearch returns the qid field to the main search, but your subsearch does not have any index defined therefore my question are those needed fields all in the same index?

if so, you could do something like this and avoid a subsearch:

index=sendmail qid=* eventtype=smimta_to to="user@host.com" | ... 

cheers, MuS

MuS
Legend

Thanks, please mark this as answered by ticking the tick 🙂

0 Karma

splunkranger
Path Finder

Perfect! Thank you. Adding the `index=' to the sub search works.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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