How to Configure S3 input plugin?

Hi I am trying to connect the S3 bucket to my logstash, since i have stored log files on S3. Would you pls suggest what i am missing?

Below is my input filter:
input {
s3 {
bucket => "purchaselogs"
access_key_id => ""
secret_access_key => "******"
interval => 300
region => "cn-north-1"
use_ssl => true

AND below is the error:
A plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::S3 bucket=>"purchaselogs", access_key_id=>"****", secret_access_key=>"", interval=>300, region=>"cn-north-1", use_ssl=>true, codec=><LogStash::Codecs::Plain charset=>"UTF-8">, delete=>false, temporary_directory=>"/var/folders/l7/dyln_9550l5drgt9cxtgq3200000gn/T/logstash">
Error: initialize: name or service not known {:level=>:error}

That would suggest a connection problem to S3.
Can you use their CLI tools to check connectivity with your details?

This is a known problem with the S3 output which apparently also applies to the S3 input.

1 Like