Splunk Search

How to create a chart overlay from 2 stats searches with no time series data?

mjones414
Contributor
sourcetype=pbs:rg OR (sourcetype=pbs:status state!=free AND state!=job-* tag=sasl0002)

| foreach resources_available_* [eval temp="<>" | rex field=temp "\_n(?\d+)\_" | eval <> = '<>'/n ] | stats values(resources_available_jg*) as resources_available_jg* | rename resources_available_jg_* as * 

This gives me something like this:
alt text

Now I want to append a search like this:

sourcetype=pbs:status state!=free AND state!=job-* | dedup Mom state| table resources_available_vnode resource_group comment | stats count by resource_group

which gives me something like this:
alt text

so that the fields from the first search are a column chart and the fields from the second search are a line graph overlaying the column chart.
Something like this:

alt text

Is it possible given one is a series of single fields and values, and one is a number of multiple values in a field?

maciep
Champion

Not sure if this is in the ballpark, but I was able to put together this simple example in my test environment. The count is used with the column chart. And the min is used as the chart overlay (see the link below). If you maybe transpose your first search and then join with the second, it might be in the right format? Not really knowing your data, there could be a faster way to get there.

http://docs.splunk.com/Documentation/Splunk/6.1.4/Viz/Chartcontrols#Chart_overlay

index=_internal component!=metrics | eval size=len(_raw) | stats min(size) as size count by component | sort - count | head 5 | sort component

alt text

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...