Splunk Search

possible to get raw data instead of csv in script?

alexl1
Path Finder

hi,

I have a script that uses this code http://splunk-base.splunk.com/answers/45794/want-to-forward-contents-of-stdin-to-my-script

but output is in csv format, is there a way to get the raw data instead?

Tags (3)
0 Karma

dmaislin_splunk
Splunk Employee
Splunk Employee
 * | table _raw | outputcsv mysearch

This will output the results to $SPLUNK_HOME/var/run/splunk/mysearch.csv with just pure raw data in it.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...