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!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...