Splunk Search

Predict stops working when eval used

rob3770
Explorer

Hi,

Looking to start using Splunk to do trending and forecasting (predict).

index=os  sourcetype=cpu   host=ukdc1-xxx-xxx* earliest=-1w | eval Total=(pctSystem+pctUser) | timechart avg(Total)  span=1h | predict Total future_timespan=168 algorithm=LL

Getting the old 'Too few data points' error.

This works, but i need the two cpu fields added together to get the total amount of CPU busy time...

index=os  sourcetype=cpu   host=ukdc1-xxx-xxx* earliest=-1w | timechart avg(pctSystem) span=1h AS AVG | predict AVG future_timespan=168 algorithm=LL
Tags (2)
0 Karma
1 Solution

aweitzman
Motivator

I think you have a typo in your failing line. It looks like you mean:

... | timechart avg(Total) span=1h AS Total | ...

View solution in original post

aweitzman
Motivator

I think you have a typo in your failing line. It looks like you mean:

... | timechart avg(Total) span=1h AS Total | ...

rob3770
Explorer

That did it!

The lower95 line is dropping to -25, can this be contained as -25% CPU utilization isn't really possible?

Cheers

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...