Navigation Menu

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

sqs input does not work after a while #1

Open
suyograo opened this issue Feb 7, 2015 · 3 comments
Open

sqs input does not work after a while #1

suyograo opened this issue Feb 7, 2015 · 3 comments

Comments

@suyograo
Copy link
Contributor

suyograo commented Feb 7, 2015

From https://logstash.jira.com/browse/LOGSTASH-2255

Hi,

We have been using sqs output plugin on different logstash version. At last, It it is used on logstash 1.4.1. In that version, per every 2-3 weeks, the sqs plugin has been crashed. It has been stopping to receive from sqs queue but logstash has been continued to work.. After logstash restarted, everything goes fine. Yesterday it repeated, we catched below log.

Note: We are using IAM roles on Aws to authenticate aws sqs service.

{:timestamp=>"2014-06-22T08:10:43.067000+0000", :message=>"Error reading SQS queue.", :error=>#<AWS::SQS::Errors::SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

The Canonical String for this request should have been
'POST
/544087101480/WsServiceLogs

content-length:231
content-type:application/x-www-form-urlencoded; charset=utf-8
host:sqs.eu-west-1.amazonaws.com
user-agent:aws-sdk-ruby/1.35.0 jruby/1.9.3 java
x-amz-content-sha256:e55e8ad53e44c3f51337e79c5be913b4980ecf21b7fdfd4f7bad182a2bb3b8bc
x-amz-date:20140622T081042Z
x-amz-security-token:AQoDYXdzECka0AOo3QtT3g/……………………………………………. EIk1IAokX2D53/F0qXjvND4XbEyCykZqdBQ==

content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-security-token
e55e8ad53e44c3f5…………………………b7fdfd4f7bad182a2bb3b8bc'

The String-to-Sign should have been
'AWS4-HMAC-SHA256
20140622T081042Z
20140622/eu-west-1/sqs/aws4_request
4100c5a8468784……………………………………..77c7794563d201'

thanks,

@mcasado
Copy link

mcasado commented Feb 17, 2015

Running into same exact issue. Any estimates when a fix for it will be available? THx

@gbutt
Copy link

gbutt commented May 25, 2015

Any errors in the SQS Output plugin will cause logstash to crash. It needs better error handling around the 'receive' event. Personally I'd rather see this kind of handling make it in to the core framework so one misbehaving plugin doesn't risk the stability of the entire app.

@jrgns
Copy link
Collaborator

jrgns commented Jan 10, 2017

Can anyone comment on if this is still an issue with the latest version of logstash (5) and the latest version of this plugin (4) ?

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

No branches or pull requests

4 participants