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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...