Splunk Search

problem in query

kuldeepsingh99
New Member

I am using this query to get the Percentage CPU Utilization.

index=os sourcetype="cpu" minutesago=15 | eval human_readable_time=strftime(_time, "%Y-%d-%m %H:%M:%S") |
table host, human_readable_time, pctUser, pctIdle

It work fine on Splunk 4.5 version but i am not getting data on 4.2.3 version, i am not getting data for pctUser and pctIdle fields

Kindly Help

Tags (1)
0 Karma

MarioM
Motivator

He meant Splunk for Unix/Linux app v4.5

0 Karma

rajiv_kumar
Path Finder

It is working fine.

Thanks,
Rajiv

0 Karma

MarioM
Motivator

great! then if you could accept the answer it will be useful for other with same issue.

0 Karma

MarioM
Motivator

i used the following to get it to work on 4.5:

index=os sourcetype="cpu" minutesago=15 | multikv forceheader=1 | eval human_readable_time=strftime(_time, "%Y-%d-%m %H:%M:%S") | table host, human_readable_time, pctUser, pctIdle
0 Karma

ChrisG
Splunk Employee
Splunk Employee

Which version of Splunk are you running? 4.3.1 is the latest.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...