[awsfirehose] Missing data when API permission is set to restrict writing to specific data stream #11768
Labels
bug
Something isn't working, use only for issues
Integration:awsfirehose
Amazon Data Firehose
Team:obs-ds-hosted-services
Label for the Observability Hosted Services team [elastic/obs-ds-hosted-services]
Problem
When API permission is set to not allow documents to be sent to a specific data stream, Firehose does not recognize the permission issue and continue assuming 100% HTTP endpoint delivery success. No failure is reported and no data getting backed up in S3 bucket.
How to reproduce this issue
Step1: When creating an API key in Kibana, make sure to change the
indices.names
from default*
tologs-awsfirehose-*
for example.Please see below for the full
Control security privileges
section:Step2: Use this API key to create a firehose stream in AWS without specifying a
es_datastream_name
parameter and send logs to this firehose.Here you should start seeing logs getting sent to ES through Firehose and stored in
logs-aws.firehose-default
data stream by default:Kibana:
Firehose:
Step3: Change Firehose stream setting by adding
es_datastream_name
parameter to something that does not match"logs-awsfirehose-*"
. In this case I usedlogs-awsinput-default
.Step4: Now you will see documents stops coming into ES and no
logs-awsinput-default
data stream being created. Going back to AWS portal, we are still seeing 100% delivery success with no failure, nothing getting backed up in S3 bucket.The text was updated successfully, but these errors were encountered: