Splunk Search

How to update table?

Edwin1471
Path Finder

Hi,

Is it possible to Make a table like in the example below, that would refresh every 10 minutes and update the status column to either Arrived or Delayed status and change the color of that row to either green or red.

Edwin1471_0-1658583581788.png

 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @Edwin1471,

yes all the requirememts you listed are possible and not difficoult to implement, but it's difficoult without any information on your data.

Could you share some sample of your data?

Anyway, supponing that in each event you have all the fields (scheduled, via, flight, status), you could run a search like the following:

 

index=your_index
| stats values(scheduled) AS scheduled values(via) AS via values(status) As status BY flight
| table scheduled via flight status
| sort scheduled

 

About autorefresh, you have to set in the dashboard this parameter.

If you're using Dashboard Studio see at https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-up-the-auto-refresh-on-a-dashbo...

If you're using Dashboard Classic, you have to insert in the first row

 

<form refresh="30">

 

For the colours, you should use the gui options in the panel's columns

gcusello_0-1658584882492.png

and assign the colours you like to the possible values

gcusello_1-1658584931687.png

Ciao.

Giuseppe

 

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Edwin1471,

yes all the requirememts you listed are possible and not difficoult to implement, but it's difficoult without any information on your data.

Could you share some sample of your data?

Anyway, supponing that in each event you have all the fields (scheduled, via, flight, status), you could run a search like the following:

 

index=your_index
| stats values(scheduled) AS scheduled values(via) AS via values(status) As status BY flight
| table scheduled via flight status
| sort scheduled

 

About autorefresh, you have to set in the dashboard this parameter.

If you're using Dashboard Studio see at https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-up-the-auto-refresh-on-a-dashbo...

If you're using Dashboard Classic, you have to insert in the first row

 

<form refresh="30">

 

For the colours, you should use the gui options in the panel's columns

gcusello_0-1658584882492.png

and assign the colours you like to the possible values

gcusello_1-1658584931687.png

Ciao.

Giuseppe

 

Get Updates on the Splunk Community!

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...