AWS S3 is configured to send event notification to SQS queue
Filebeat is using aws-s3 to pull logs from S3 through the SQS queue
filebeat.inputs:
- type: aws-s3
queue_url: https://sqs.us-east-2.amazonaws.com/aws-id/queue-name
gzip: true
file_selectors:
- regex: 'log/app1'
Filebeat deletes all the messages present in the queue, whereas it should only process and delete the messages matching the file_selectors
regex
Question: How to configure filebeat to not delete SQS queue message if the message does not match the file_selectors
regex?
P.S.
The use case that I am trying to achieve is
- AWS S3 notification -> SQS queue(all type of files)
- Multiple filebeat instances configured with the same queue
- Filebeat-1: configured
file_selectors
for log/app1. filebeat output: Logstash - Filebeat-2: configured
file_selectors
for log/app2. filebeat output: Elasticsearch, index app2
or - Filebeat-1: configured
file_selectors
for log/app1. filebeat output: Elasticsearch, index app1 - Filebeat-2: configured
file_selectors
for log/app2. filebeat output: Elasticsearch, index app2