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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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 ...