Dashboards & Visualizations

Same search - using different servers (host) - display on different dashboards.

JYTTEJ
Communicator

I need to establish the same dashboard for each of our Test, pre-prod and production environment.

I.e. the same searches should be used - with the only difference of the host name.

Example:

MID="*E" OR MID="*A" | stats count by host| rangemap field=count low=0-0 elevated=1-1 default=severe

I want the result shown into one of the three dashboards, depending on the hostname.

I.e. when the host= PSDKXP0* -then the result is shown in PRODUCTION dashboard

When host = PSDKXM0* - then the result is shown in the PRE-PROD dashboard

When host= PSDKXT0* - then the result is shown in the TEST dashboard.

How do I accomplish that?

Tags (1)
0 Karma

gnovak
Builder

I've been working with dashboards for a bit so figured I'd ask questions and maybe help or learn even more!

In your dashboards are you using saved searches or inline searches for the dashboard?

Can you add host=PSDKXP0* (for example) to the beginning of the search for the production dashboard and see what your results are?

Or were you looking to use splunk to filter them automatically? I assume automatically.....

0 Karma

JYTTEJ
Communicator

I use saved searches in my dashboards - and yes - you are right in the above comment. I want to use only 1 query - and based on the host name, I want the result to be put on a particular dashboard. So, does anybody know how I do this?

0 Karma

gnovak
Builder

oh wait i think i get it...you want the search to run, results to be generated, and then based on the host name in the list of results have that host name show up on a certain dashboard....correct?

So 1 query looking for "stuff", the query finds "stuff" and then puts the "stuff" on a particular dashboard based on the hostname...gotcha....

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...