Dashboards & Visualizations
Highlighted

How to add a trendline to my search?

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

Re: How to add a trendline to my search?

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.

Highlighted

Re: How to add a trendline to my search?

New Member

Hi,

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

0 Karma