Splunk Search

How can I do extract fields through the CLI?

ikerfresh
New Member

Hi,

I'm trying to do this search "sourcetype="MySQL" | multikv fields Variable_name Value | search Variable_name="Innodb_data_pending_reads", through the web it works fine, but with the CLI I can't do it.

Can anybody help me?

Regards,
Iker

Tags (2)
0 Karma

fk319
Builder

There are several output commands, I would suggest outputcsv.
You may also opt for just using fields.
I am not clear where you want the fields to go, to a file or to stdout.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...