Dashboards & Visualizations

Chained Searches in a Dashboard

raidercom
Communicator

Hi:

I am testing out the new dashboard options with Dashboard Studio, and I am a bit confused as to how a feature works.  I want to use a base search 'index=nginx source="/var/log/nginx/access.log"', I have that setup in DataSource.  I then want to chain that to multiple modifiers.  For this end, I added a Chain search '| stats count by status', linked to the Parent Search above, I also created another chain search '| search splunk*' for some testing.

If I create a dashboard panel graph (pie), and link it to the stats search, it says it can't find any data 'Search ran successfully, but no results were returned'.  If I click the magnifying glass from that, it returns results.

If I have a table panel, and use the splunk search chain search, it finds results.  If I have a chained search that uses '| search site=splunk*', despite that field existing, it finds no results, but the magnifying glass does.  Can auto extracted fields not be used in this manner?

The data in the source logs are all in the format <key>="value" for easy auto extraction of the fields.

Thank you for any assistance/information you can provide.

Labels (3)
0 Karma
1 Solution

raidercom
Communicator

Found the issue

Didn't notice this one line in the documentation:

If the base search is a non-transforming search, you must explicitly state in the base search what fields will be used in the chain search using the fields command.

from https://docs.splunk.com/Documentation/Splunk/8.2.1/DashStudio/dsChain

View solution in original post

0 Karma

raidercom
Communicator

Found the issue

Didn't notice this one line in the documentation:

If the base search is a non-transforming search, you must explicitly state in the base search what fields will be used in the chain search using the fields command.

from https://docs.splunk.com/Documentation/Splunk/8.2.1/DashStudio/dsChain

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...