Splunk Search

help with a sub search and pie chart

chadman
Path Finder

I have a pie chart that works great with a current search. I have been asked to add something to the pie chart that is not contained in the current search/source. The current search takes a list and finds how many times each unique serial number shows up. So my current search for my pie chart that works looks like:
sourcetype=mysource NOT "Device Name" | stats count by sn | rangemap field=count "min" 1-2 " Mod" 2-3 "High" 4-1000 | stats count by range

So I need to add serial numbers that are not showing up in my original search that are contained in another sourcetype. This sourcetype only contains text file of serial numbers. Some how I need to read that list, find what serial numbers are in that list and not being used in my current chart, and then add that number to my chart under rangemap with something like "low" 0. Any ideas how I can make that happen all in one search?

0 Karma
1 Solution

chadman
Path Finder

Got it working with a join.

View solution in original post

0 Karma

chadman
Path Finder

Got it working with a join.

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...