Dashboards & Visualizations

Trend line is not getting displayed

Chinmai
Explorer

Hello,

I am using the following search string to get a trend line on the column chart in the visualization tab. But i am getting only column chart but not trend line. Can anyone please help me with this?

index=abc | chart sum(RES_CONF_ID) as count over MO_NAME by YR_NUM useother=f |lookup Lookup_month MO_NAME output MO_OF_YR_NUM | sort + MO_OF_YR_NUM | fields - MO_OF_YR_NUM | trendline wma2(sum(RES_CONF_ID)) as trend

Thanks in advance.

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Do you see a trend field in the tabular/statistics view of your data?

If so, all you need to get a line is to switch back to the visualization tab, and format your column chart's overlay field to be the trend field.
If not, you will first need to figure out what's wrong with your search.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...