Reporting

How can I limit outputcsv file size?

chris
Motivator

Is there a possibility to limit the filesize for csv files that are generated by the outputcsv command?

Tags (2)
0 Karma
1 Solution

BobM
Builder

if you precede the outputcsv command with the head command that will limit it for this search.

mysearch | head 1000 | ouputcsv mcsvfile.csv

or are you looking for a more global setting?

View solution in original post

BobM
Builder

if you precede the outputcsv command with the head command that will limit it for this search.

mysearch | head 1000 | ouputcsv mcsvfile.csv

or are you looking for a more global setting?

chris
Motivator

Thanks. This is a good start, as a Splunk admin I'd prefer a to have a more global setting. I don't want to check every saved search and make sure, that they aren't storing _raw fields to csvs that are never used later on. I'll leave this open for a little while to see if there are any other ideas.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...