Splunk Search

Append more 50k or other soluction like a join

Michell_ctba
Explorer

Hello community. I am not able to perform a sub-search between 2 sourcetypes. The 'drm' sourcetype has 5 million events and I need to sub-search an sourcetype with 2 million events (drm_tuser). I tried with the join and append command followed by stats but I am not able to accomplish this task. Here is an example:

userId is a common field between sourcetypes.

index="ott" sourcetype="drm"

| append
[ search index=ott sourcetype=drm_tuser earliest=1]

| stats dc(sourcetype) as sourcetype values(retailerUserId) as retailerUserId values(bitrate) as bitrate by userId

Append use limit of 50k results in limits.conf, but I would not like to change the limits.conf so any other solution would be ideal


Tanks for help

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Consider converting the drm_tuser sourcetype into a lookup table.

---
If this reply helps you, Karma would be appreciated.
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Michell_ctba,

why do you want to use append? you don't need it, you can use OR!

Try something like this:

index="ott" (sourcetype="drm" OR sourcetype=drm_tuser)
| stats dc(sourcetype) as sourcetype values(retailerUserId) as retailerUserId values(bitrate) as bitrate by userId

Ciao.

Giuseppe

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...