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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...