Open
Description
Have seen several questions about this but we do require logstash to have the ability to output to file and limit file size.
Example: Only write files to size 250mb or 250,000 lines.
Using timebased file rotation has resulted in Gb size files every hour, and the timestamp will not rotate on the 10 minute (YYYYMMddHHm) so it rotates every minute which generates more files than we would like. In some of our scenarios, 10 minutes would still generate files that are too large.
We also would like the ability to place a rotate counter of some kind within the file name rather than append to the end of the file.
Example: /var/log/mylogfile.%{file_counter}.%{host}.%{YYYYMMddHHm}.json
Our current requirement is that the file must end in ".json".