Dashboards & Visualizations

How to populate an input dynamically in Dashboard Studio?

Noel101
Loves-to-Learn

Hi, 

Splunk Version: 8.2.6

Index Type: Metrics Index

Dashboard type: Dashboard Studio

 

I've followed the document here https://docs.splunk.com/Documentation/SplunkCloud/latest/DashStudio/inputs

to try to create an input that is populated via a datasource (I've also looked at a number of questions on this forum).

The specified configuration simply does not work:

"items": ">frame(label, value) | prepend(formattedStatics) | objects()",

I mean what does this even mean? The syntax is pretty obscure and there is no documentation.

I've looked at the `formattedStatics` bit and created exactly the same configuration, but using my own data source and the input simply shows the default value and does not display the results from the query.

My datasource is the following:

 

 

 |mcatalog values("userName") as userName where index=myapp_metrics

 

 

 

I've tried all sorts of combination including

 

 

 "label": ">primary | seriesByName(\"userName\") | renameSeries(\"label\") | formatByType(formattedConfig)",
               "value": ">primary | seriesByName(\"userName\") | renameSeries(\"value\") | formatByType(formattedConfig)"

 

 

None of this has worked.

All the examples I've seen are for an Events index. Is there something special I need to do for a Metrics index?

 

Labels (1)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...