Deployment Architecture

Nix TA iostat.sh problem

Splunk_U
Path Finder

In splunk NIX TA they have used a script named iostat.sh. In the script the command got used is iostat -xk 1 2 i.e. it is providing the IO statistics extensively and running in every 1 sec for 2 times. Now when I am running this particular command in my linux server it is providing me the r/s and rkB/s value as 0.00 in every 2nd second whether it has some value in the first second.

So whenever I am trying to retrieve the data for sourcetype=iostat it is showing me r/s and rKB/s as 0.00.

Why the data is 0.00 in every 2nd second??? Is there any thing that I am missing???

Tags (3)
0 Karma

Splunk_U
Path Finder

I have found out the answer. in the iostat.sh they are using the command iostat -xk 1 2 because it wants to run the script for two times in a interval of 1 sec. The first result shows from the last time the server got restarted and the second result shows the data for now.
For me I was getting the r/s and rKB/s values are 0 because all the data reading were taking place in the cache.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...