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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...