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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...