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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...