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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...