-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add template for Cloudwatchlogs lambda function without decompression #10
base: master
Are you sure you want to change the base?
feat: Add template for Cloudwatchlogs lambda function without decompression #10
Conversation
# processed data). If it's not possible to split because there is only one log event, then mark the record as | ||
# ProcessingFailed, which sends it to error output. | ||
if len(rec["data"]) > 6000000: | ||
cwlRecord = loadJsonGzipBase64(originalRecord["data"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loadJsonGzipBase64 is still being called. Required to convert to without decompression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code updated. loadJsonGzipBase64
Function removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
} | ||
... | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update this sample message with our actual sample by masking the actual values with dummy values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
So this example code is how data looks like after it is decoded. So after json.loads(base64.b64decode(r["data"]))
object will have fields as listed in this comment
a1d74f6
to
9e55db3
Compare
7e3af6e
to
1a0a37f
Compare
This PR adds new file that can be used in lambda for Firehouse streams with
Decompress source records from Amazon CloudWatch Logs
set toOn