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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...