I want to add a trendline to this chart:
index=my_index
| timechart dc(USER) as DISTINCT_USERS
How do I accomplish this?
Thanks!
Jonathan
Hi
Add the trendline command after your timechart:
index=my_index | timechart dc(USER) as DISTINCT_USERS | trendline sma5(DISTINCT_USERS) as trend_DISTINCT_USERS
This adds a 5-point simple moving average trendline.
Adjust the window size (e.g., sma7, sma10) as needed.
🌟Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing