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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...