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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...