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!

Synthetic Monitoring: Not your Grandma’s Polyester! Tech Talk: DevOps Edition

Register today and join TekStream on Tuesday, February 28 at 11am PT/2pm ET for a demonstration of Splunk ...

Instrumenting Java Websocket Messaging

Instrumenting Java Websocket MessagingThis article is a code-based discussion of passing OpenTelemetry trace ...

Announcing General Availability of Splunk Incident Intelligence!

Digital transformation is real! Across industries, companies big and small are going through rapid digital ...