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 Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...