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!

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, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...