Exclude archive files from filebeat processing

Dear all,

I need exclude archive files from filebeat processing.

My archive exstensions: *.gz, *.bz2

Currently i have configured exclusion of such type of files, but it is not working.

exclude_files: [".gz$",".out$",".bz2$"]

Quick response will be greatly appreciated.

1 Like

See here for an example: https://www.elastic.co/guide/en/beats/filebeat/5.3/configuration-filebeat-options.html#exclude-files You probably have the escape the dot.

1 Like

Is there any differences between ['.gz$','.bz2$'] and [".gz$",".bz2$"] ?

Yes, single and double quotes can matter.

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