Splunk Search

How to extract these individual fields for iostat data?

jodros
Builder

I am having a difficult time extracting fields for data returned by iostat. Has anyone been able to extract these individual fields? Data below:

Device   rReq_PS   wReq_PS   rKB_PS   wKB_PS  avgWaitMillis  avgSvcMillis  bandwUtilPct
sda       0.00     208.00     0.00    1644.00     1.45           0.02          0.50
sda1      0.00     0.00       0.00     0.00       0.00           0.00          0.00
sda2      0.00     0.00       0.00     0.00       0.00           0.00          0.00
sda5      0.00     208.00     0.00    1644.00     1.45           0.02          0.50
sda6      0.00     0.00       0.00     0.00       0.00           0.00          0.00
0 Karma

twinspop
Influencer

Does multikv not work for you?

| stats count | eval _raw="<your data above>" | multikv | fields - _raw count

Seems to work as expected.

Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...