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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...