Dashboards & Visualizations

How can I show a trend indicator while pivoting search from this Meta Woot! macro?

psohn5295
Loves-to-Learn

Hi,

I have been using Meta Woot! to keep track of assets and their logging times. This search in particular, shows a single value of Hosts checking in but I'm unable to use timechart correctly to show trend indicators.

I've tried adding the following to no avail. Any suggestions would be greatly appreciated. 

 

| timechart span=1d count by host

 

Search string:

 

inputlookup meta_woot  where index=* sourcetype=* host=* | where recentTime>(now()-86400) | eval latency= round((recentTime-lastTime)/60,2)  | eval latency_type=if(latency<0,"Logging Ahead","Logging Behind") | eval latency=abs(latency) | eval latency_type=if(latency="0.00","No Latency",latency_type) | where latency>=0  | stats dc(host) as "Total Hosts"

 

 Thanks!

Labels (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
Hi
In first you should start the query with
| inputlookup .....
and change the last stats ... to timechart dc(host) as “Total Hosts”
r. Ismo
0 Karma
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 ...