I want to exclude all access logs files from the filebeat except 2 service access logs. I'm using the regex but getting error and filebeat start is failing
exclude_files: ['\/var\/log\/xxx\/.*(?!.*(xxx)).*\/.*(?!.*(xxx)).*-access.log']
error message
`ERROR instance/beat.go:989 Exiting: Failed to start crawler: starting input failed: Error while initializing input: error parsing regexp: invalid or unsupported Perl syntax: `(?!` accessing 'filebeat.inputs.0.exclude_files.0' (source:'/etc/filebeat/filebeat.yml')
filebeat[8457]: Exiting: Failed to start crawler: starting input failed: Error while initializing input: error parsing regexp: invalid or unsupported Perl syntax: `(?!` accessing 'filebeat.inputs.0.exclude_files.0' (source:'/etc/filebeat/filebeat.yml')`