Splunk Search

use outputcsv and inputcsv in one query

harshal_chakran
Builder

Hi,
I want to write a query where, I can store a result in csv file. for e.g "outputFile" and then search through that file using inputcsv
i.e.

search.......|outputcsv outputFile.csv|inputcsv outputFile.csv|search......|output Finalcsv.csv

I have tried, but failed everytime. Please help me with this query, where I can take the result , store it on one csv file, then do the remaining search from that csv file, in one single query.

Kindly Help.

0 Karma

kristian_kolb
Ultra Champion

Have you looked at this article, which describes how to set up a similar thing?

http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/

/k

0 Karma

linu1988
Champion

Why would you need that? you can use MAP command to search through the first result or manipulate it to get the final outputcsv result. Let us know the requirement.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...