Getting Data In

Record extract based on data value: KV Store/CSV

hemendralodhi
Contributor

Hello,

We have a requirement where we have one csv file which contains around 30K records of data and need to extract complete row based on data values passed as an API or search parameter. Each time there can be different data values passed.

What is the best and efficient way of achieving this. I was reading about KV store which might be able to give desired result.

Can I can use KV store or CSV lookup to test this? How this is achievable?

Thanks
Hemendra

0 Karma

alemarzu
Motivator

Hi there, try this.

your_search | outputcsv yourfilename.CSV

Get your file on $SPLUNK_HOME/var/run/splunk
Hope it helps.

0 Karma

hemendralodhi
Contributor

Hello,

Thanks for your response. I will check on this.

Another qq: Will search on KV Store/CSV store field data will output complete row?

Thanks
Hemendra

0 Karma

alemarzu
Motivator

Can tell if it works with the complete _raw data, but I believe its possible.

0 Karma
Get Updates on the Splunk Community!

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...

New Year. New Skills. New Course Releases from Splunk Education

A new year often inspires reflection—and reinvention. Whether your goals include strengthening your security ...