Output stream to csv file

Hi all,

What’s the easiest way to send the output of a stream to a CSV file (or text file)? Ideally, I’m looking for a solution that would rotate the file after a certain time (daily) or size.

I looked at the stream output feature, but it wasn’t clear to me how to use it. The docs are very minimal.

I’m using v4.0.6 on FreeBSD.

Thanks!