Skip to content
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

Add new multiplex option to logstash-output-sqs plugin #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shalottnet
Copy link

Add a new option to allow multiplexing multiple Logstash event messages inside each SQS message. The logstash-input-sqs plugin already has support (via the standard 'json' codec) for demuxing such messages.

This plugin currently supports the use of SQS SendMessageBatch API; but SQS imposes a hard limit of ten messages per API call. By multiplexing instead, we can send potentially hundreds of messages per API call (depending on messages size). In local testing, I saw a 12x reduction in SQS API calls (corresponding to a 12x decrease in SQS costs on the AWS bill).

Tests, docs, etc still WIP; wanted to solicit feedback before going any further.

Thanks.

@cla-checker-service
Copy link

cla-checker-service bot commented Jul 22, 2022

💚 CLA has been signed

@shalottnet
Copy link
Author

CLA should be signed now.

@shalottnet
Copy link
Author

Any comments or questions on this PR?

CLA was signed, and the Travis CI failures look unrelated.

Would love to get this merged...

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant