You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the path of cloudtrail is as follows:
source_vpc -> s3 -> SNS -> SQS -> filebeat -> elasticsearch
There are some errors related to the cloudtrail digest log in filebeat log:
2020-08-28T22:49:05.848Z ERROR [s3] s3/input.go:562 key 'Records' not found
2020-08-28T22:49:05.848Z ERROR [s3] s3/input.go:464 decodeJSONWithKey failed for 'AWSLogs/<acct-id>/CloudTrail-Digest/eu-west-3/2020/08/28/835404217325_CloudTrail-Digest_eu-west-3_XXXX_Infosec_Audit_us-west-2_20200828T220732Z.json.gz' from S3 bucket 'XXXX-cloudtrail-logs': key 'Records' not found
2020-08-28T22:49:05.848Z ERROR [s3] s3/input.go:396 createEventsFromS3Info failed processing file from s3 bucket "XXXX-cloudtrail-logs" with name "AWSLogs/<acct-id>/CloudTrail-Digest/eu-west-3/2020/08/28/835404217325_CloudTrail-Digest_eu-west-3_XXXX_Infosec_Audit_us-west-2_20200828T220732Z.json.gz": decodeJSONWithKey failed for 'AWSLogs/<acct-id>/CloudTrail-Digest/eu-west-3/2020/08/28/835404217325_CloudTrail-Digest_eu-west-3_XXXX_Infosec_Audit_us-west-2_20200828T220732Z.json.gz' from S3 bucket 'XXXX-cloudtrail-logs': key 'Records' not found
The cloudtrail fileset does not read the CloudTrail Digest files that are delivered to the S3 bucket when Log File Integrity is turned on, it only reads the CloudTrail logs.
But filebeat log shows it try to parse the digest log and failed, the expect behaviour is to skip the digest log.
Adding Prefix AWSLogs/$AWS_ACCOUNT_ID/CloudTrail/ to the S3 notification will make it so only notifications for the CloudTrail logs are sent to the SQS queue and processed by Filebeat.
For some this may not work because there are too many AWS_ACCOUNT_IDs that are writing to the same S3 bucket.
Currently the path of cloudtrail is as follows:
source_vpc -> s3 -> SNS -> SQS -> filebeat -> elasticsearch
There are some errors related to the cloudtrail digest log in filebeat log:
As mentioned in the document for filebeat AWS module cloudtrail fileset :
But filebeat log shows it try to parse the digest log and failed, the expect behaviour is to skip the digest log.
Here is the filebeat.yml config:
The text was updated successfully, but these errors were encountered: