title: logstash limit the size of output file
body: <p>I am running logstash 6.8.11, using logstash to retrieve logs from a filebeat.</p>
  <p>The configuration is quite simple:</p>
  <pre><code>input {
  beats {
      port =&gt; hidden
  }
  }
  output {
  if [beat][name] =~ &quot;anonymous*&quot; {
      file {
      path =&gt; &quot;/tmp/test-%{+YYYY-MM-DD-HH}&quot;
      codec =&gt; json_lines
  }
  }}
  </code></pre>
  <p>Is there any way I can limit the size of the output file to a specific size (let's say 10MB, or 50MB)</p>