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!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

[Coming Soon] Splunk Observability Cloud - Enhanced navigation with a modern look and ...

We are excited to introduce our enhanced UI that brings together AppDynamics and Splunk Observability. This is ...

Splunk Smartness with Patrick Tatro | Episode 4

Welcome to another episode of "Splunk Smartness," where we explore how Splunk Education can revolutionize your ...