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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...