Exclude multiple patterns in logstash s3 input

Logstash S3 input has an option to exclude a pattern. The example shows how to exclude a single pattern. For example:
"exclude_pattern" => "/2020/04/"

Is it possible to exclude multiple patterns?
For example, exclude all the logs containing the following in the path:

exclude_pattern is a Ruby style regexp, so yes, you can use alternation.

exclude_pattern => "\/2019\/03\/|\/2019\/02\/|\/2020\/02\/|\/2020\/03\/"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.