cherweg / logstash-input-s3-sns-sqs

logstash input downloading files from s3 Bucket by OjectKey from SNS/SQS
Other
29 stars 35 forks source link

Error in poller loop {:error=>#<TypeError: no implicit conversion of nil into String>} #80

Open kalavathiy opened 1 year ago

kalavathiy commented 1 year ago

2023-03-23T16:00:49.892-05:00

Copy [2023-03-23T21:00:49,892][WARN ][logstash.inputs.s3snssqs ][main][810dfc198348eab77744b1c994f834422468d4e11482ba1f7bab271eefd7bda0] Error in poller loop {:error=>#}

my configuration look something like this

input { s3snssqs { region => "us-west-2" s3_default_options => { "endpoint_discovery" => true } queue => "${queue}" queue_owner_aws_account_id => "${queue_owner_aws_account_id}" type => "sqs-logs" tags => ["lsp"] sqs_skip_delete => true codec => json s3_options_by_bucket => [ { bucket_name => "${bucket_name}" credentials => { role => "${role}" }

source_profile => "${source_profile}"

}] } }

output { microsoft-logstash-output-azure-loganalytics { workspace_id => "${workspace_id}" workspace_key => "${workspace_key}" custom_log_table_name => "logstash_test" } }

kalavathiy commented 1 year ago

@cherwegplease provide your suggestion on this error

RyanGWU82 commented 11 months ago

I ran into this same problem today and found it was because I didn't have the from_sns attribute in my s3snssqs input config. Adding from_sns => false solved the problem.