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!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...