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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...