Splunk Search

Why does subsearch always have zero results?

Lavani
Observer

Hello Everyone.

I have a search with a subsearch that's correctly running on a test environment (Splunk 8.2.9). Now I copied it on a production environment (Splunk 82.9), but it doesn't run: the subsearch has always zero as result.

 

| rest /services/authorization/roles/
| search title="logmon_app*" | table title
| rename title as role
| join type=left role max=0
[| rest /services/authentication/users
| table roles title
| rename title as userName,roles as role
| mvexpand role | search role="logmon_app*" ]
| stats values(userName) as username by role | eval rolepresent="yes"
| outputlookup logmon_roles_users.csv override_if_empty=false,

 

 

Thank you 

Labels (4)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @Lavani 

Please run only the subsearch part on the production and see if it gives any output:

| rest /services/authentication/users
| table roles title
| rename title as userName,roles as role
| mvexpand role | search role="logmon_app*" 

 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...