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!

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 ...