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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...