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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...