Dashboards & Visualizations

How to add a trendline to my search?

neilhiley
Explorer

I have a few searches with a few totals and an SLA line... kinda as follows.

...... | timechart max(msecs) AS Max_avg  min(msecs) AS Min_avg avg(msecs) AS Total_avg |eval SLA=47

I want to add a trendline to this search so its also visible in the dashboards... how can i do this.....

Tags (1)
0 Karma

aljohnson_splun
Splunk Employee
Splunk Employee

Just pipe to trendline

... | trendline sma10(Max_avg) as MaxTrend

where

  • sma can be ema, sma, or wma
    and

  • 10 represents the period (can be between 2 and 10000)

Read more on the trendline command here


Upon rereading your question... I'm wondering if you just meant the chart overlay option.

In the visualization tab, go to Format. Then go to Chart Overlay, then choose the field you'd like to use.

schwiddi
New Member

Hi,

is it possible to give the EMA in the Visualized View an Offset so it is X times smaller?

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

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 ...