Dashboards & Visualizations

How to add a trend line to a line chart with 2 lines?

joeferranti99
New Member

I have a query that produces a line chart with two plotlines; I would like to add a trend line for each line.

sourcetype=OktaIM2:log (debugContext.debugData.requestUri=/app/office365/xxxxxxxxxxxxxxxxxxxxxxx/sso/wsfed/active OR debugContext.debugData.requestUri=/app/office365/xxxxxxxxxxxxxxxxxxxxxxx/sso/wsfed/passive) AND debugContext.debugData.requestUri=office AND loginName=*
| timechart span=1d count by debugContext.debugData.requestUrialt text

Thanks!

Labels (1)
Tags (1)
0 Karma
1 Solution

to4kawa
Ultra Champion

sample:

index=_internal sourcetype=splunkd_*
| timechart count by sourcetype
| untable _time sourcetype count
| trendline sma5(count) as trend
| xyseries _time sourcetype count trend

try untable and trendline

View solution in original post

0 Karma

to4kawa
Ultra Champion

sample:

index=_internal sourcetype=splunkd_*
| timechart count by sourcetype
| untable _time sourcetype count
| trendline sma5(count) as trend
| xyseries _time sourcetype count trend

try untable and trendline

0 Karma
Get Updates on the Splunk Community!

Dashboard Studio Challenge - Learn New Tricks, Showcase Your Skills, and Win Prizes!

Reimagine what you can do with your dashboards. Dashboard Studio is Splunk’s newest dashboard builder to ...

Introducing Edge Processor: Next Gen Data Transformation

We get it - not only can it take a lot of time, money and resources to get data into Splunk, but it also takes ...

Take the 2021 Splunk Career Survey for $50 in Amazon Cash

Help us learn about how Splunk has impacted your career by taking the 2021 Splunk Career Survey. Last year’s ...