Splunk Search

How to use the predict command without the time chart?

hackerspoint
New Member

I would like to predict how long the transaction would take given the dataset grows. Let us assume the job runs daily.

This is the query shows how the long the job would take over time.

  index=*** | transaction startswith="Kick Off" endswith="End"  | timechart span=1d max(duration) as duration  | predict duration future_timespan=30

This is the query shows how the data set grows over time.

index=** | transaction startswith="Kick Off" endswith="End" | timechart span=1d max(DataSetCount) as DataSetCount | predict DataSetCount future_timespan=30

But I am after predict the time if data set grows over time by exponentially or linearly.

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Don't use the predict command, it will not work as expected. You can achieve what you're looking for using the MLTK and linear regression. You are looking for the slope (rate of change for growth), so you should easily be able to forecast a future value

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...