S3 plugin relative path error


(jainh) #1

I keep getting an error that relative path has been specified

Any ideas?

   input {

s3 {
id => 'main'
access_key_id => ''
secret_access_key => '/O'
bucket => 'sales-data'
region => 'us-east-1'
prefix => '/'
type => 's3'
additional_settings => {
force_path_style => true
follow_redirects => false
}
}
file {
path => 'https://s3.amazonaws.com/sales-data/sales/SfileName0.csv'
start_position => 'beginning'

sincedb_path => 'NUL'

}

}

filter {
csv {
separator => ","
columns => ["Type"]
}
}

output {
elasticsearch {
hosts => ""
user => ""
password => ""
index => "data"
}
stdout {}
}


(Magnus B├Ąck) #2

As documented, the file input only reads files from a locally mounted file system. To read a file from an HTTP resource you can use the http_poller input plugin.


(jainh) #3

Works!!


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.