Dashboards & Visualizations

trendline won't display

nikmeiser
Explorer

I have a simple trendline to track storage growth I want to display. I'm using the following syntax. There are no errors but the trendline won't display -

tag="host01" | eval MOUNTPT=mvfilter(match(MOUNTPT, "^/d/")) | eval USEDGB=round(X_USED/(1024*1024),2) | timechart max(USEDGB) | trendline sma5(USEDGB) as trend

Any ideas what I'm doing wrong?

Tags (1)
0 Karma
1 Solution

nikmeiser
Explorer

Figured it out. It needed a function around the field. This works -

tag="host01" | eval MOUNTPT=mvfilter(match(MOUNTPT, "^/d/")) | eval USEDGB=round(X_USED/(1024*1024),2) | timechart max(USEDGB) | trendline sma5(max(USEDGB)) as trend

View solution in original post

nikmeiser
Explorer

Figured it out. It needed a function around the field. This works -

tag="host01" | eval MOUNTPT=mvfilter(match(MOUNTPT, "^/d/")) | eval USEDGB=round(X_USED/(1024*1024),2) | timechart max(USEDGB) | trendline sma5(max(USEDGB)) as trend
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...