the SQS Queue is valid, I copied it from the AWS console.
Can you please tell me where to set the endpoint: amazon.com is that in the filebeat input
Can you confirm if this Fix hardcoded region is resolved? I am on Filebeat 7.14
I have actually confirmed it should have been amazonaws. I modified the config for the correct SQS Queue URL. However I am still getting invalid token errors.
The security token included in the request is invalid
status code: 403, request id: ea537a51-790c-4079-b9c2-7c6f180d2514 {"id": "F887DBA4DA00DEE3", "queue_url": "https://sqs.us-gov-east-1.amazonaws.com/redacted", "region": "us-gov-east-1"}
2021-09-10T20:26:19.465Z ERROR [input.aws-s3] awss3/collector.go:106 SQS ReceiveMessageRequest failed: InvalidClientTokenId: The security token included in the request is invalid
status code: 403, request id: 1c06c489-6500-45d7-9fa3-0a0e4ccfc4d5 {"id": "F887DBA4DA00DEE3", "queue_url": "https://sqs.us-gov-east-1.amazonaws.com/redacted", "region": "us-gov-east-1"}
2021-09-10T20:26:19.478Z ERROR [input.aws-s3] awss3/collector.go:106 SQS ReceiveMessageRequest failed: InvalidClientTokenId: The security token included in the request is invalid
status code: 403, request id: e54a0a86-57ef-4421-b471-f105eb45b37d {"id": "F887DBA4DA00DEE3", "queue_url": "https://sqs.us-gov-east-1.amazonaws.com/redacted", "region": "us-gov-east-1"}
I'm not as familiar with the authentication portion of but would definitely take a close look at the docs here
I think you are close...just need to get the creds right.
The aws module requires AWS credentials configuration in order to make AWS API calls. Users can either use access_key_id, secret_access_key and/or session_token, or use role_arn AWS IAM role, or use shared AWS credentials file.
Please see AWS credentials options for more details.
Thank you Stephen. I will look into fips. I am not using aws module, and am using only filebeat keystore for credentials.
filebeat.inputs:
# Each - is an input. Most options can be set at the input level, so
- type: aws-s3
queue_url: https://sqs.us-gov-east-1.amazonaws.com/redacted
role_arn: arn:aws-us-gov:iam::redacted
expand_event_list_from_field: Records
bucket_list_interval: 300s
file_selectors:
- regex: '/CloudTrail/'
- regex: '/CloudTrail-Digest/'
- regex: '/CloudTrail-Insight/'
# Change to true to enable this input configuration.
enabled: true
# filestream is an input for collecting log messages from files. It is going to replace log input in the future.
- type: filestream
enabled: false
# ================================== Outputs ===================================
# Configure what output to use when sending the data collected by the beat.
output.logstash:
hosts: ["localhost:5044"]
output.elasticsearch.password: "$[ES_PWD}"
Plus if you use the keystore you still need to put the fields in the yml example below, it does not automatically put them in the filebeat.yml but I would try first with them directly in the filebeat.yml
Adding the keys to the keystore (it will prompt for the value)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.