Splunk Search

Subsearch Help

shri_27
Path Finder

[subsearch]: Subsearch produced 50000 results, truncating to maxout 50000.
How to fix this??please help

Thanks in advance.

Tags (1)
0 Karma

jonuwz
Influencer

So an inner join only matches if supplierid is present in both searches, and contractId from the subsearch will overwrite the result from the main search.

Try something like this :

(sourcetype="csv-37" NOT "suplierID" NOT "----*") OR ( sourcetype="csv-31" ) 
| stats dc(sourcetype) as types by suplierID,contractID | where types > 1
| table suplierID,contractID 
0 Karma

shri_27
Path Finder

sourcetype="csv-37" NOT "suplierID" NOT "----*"| table suplierID,contractID | join suplierID[search sourcetype="csv-31" | fields suplierID,contractID] | table suplierID,contractID

0 Karma

jonuwz
Influencer

That error should probably read "You're doing it wrong". Post your search. I've never encountered a real world problem where a subsearch is required.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...