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!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...