qubusp
(Qubusp)
March 1, 2021, 2:01pm
1
input {
java_generator{
}
}
filter{
csv{
}
}
output {
s3 {
validate_credentials_on_root_bucket => false,
endpoint => "http://nginx:9000",
bucket => "rawdata",
codec => "csv",
additional_settings => {
“force_path_style” => true
}
}
}
Hello I am running the above and I am getting constanly into this particular error:
logstash_1 | [2021-03-01T13:59:24,619][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main,
:exception=>"LogStash::ConfigurationError", :message=>"Expected one of [A-Za-z0-9_-], [ \\t\\r\\n],
\"#\", \"{\", [A-Za-z0-9_], \"}\" at line 13, column 49 (byte 129) after output {\n s3 {\n
validate_credentials_on_root_bucket => false", :backtrace=>["/usr/share/logstash/logstash-
core/lib/logstash/compiler.rb:32:in `compile_imperative'",
"org/logstash/execution/AbstractPipelineExt.java:184:in `initialize'",
"org/logstash/execution/JavaBasePipelineExt.java:69:in `initialize'", "/usr/share/logstash/logstash-
core/lib/logstash/java_pipeline.rb:47:in `initialize'", "/usr/share/logstash/logstash-
core/lib/logstash/pipeline_action/create.rb:52:in `execute'", "/usr/share/logstash/logstash-
core/lib/logstash/agent.rb:367:in `block in converge_state'"]}
Any help is highly appreciated.
Kind Regards
Badger
March 1, 2021, 5:48pm
2
qubusp:
s3 {
validate_credentials_on_root_bucket => false,
endpoint => "http://nginx:9000",
bucket => "rawdata",
codec => "csv",
additional_settings => {
“force_path_style” => true
}
Remove the commas between options.
qubusp
(Qubusp)
March 2, 2021, 6:55am
3
Hi,
well the result is as follows:
logstash_1 | [2021-03-02T06:53:01,204][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main,
:exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \\t\\r\\n], \"#\", \"-\", [0-9], [A-Za-z_],
'\"', \"'\", \"}\" at line 18, column 7 (byte 244) after
output {\n s3 {\n validate_credentials_on_root_bucket => false\n endpoint => \"http://nginx:9000\"\n bucket => \"rawdata\"\n codec => \"csv\"\n additional_settings => {\n ", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:32:in
`compile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:184:in `initialize'",
"org/logstash/execution/JavaBasePipelineExt.java:69:in `initialize'", "/usr/share/logstash/logstash-
core/lib/logstash/java_pipeline.rb:47:in `initialize'", "/usr/share/logstash/logstash-
core/lib/logstash/pipeline_action/create.rb:52:in `execute'", "/usr/share/logstash/logstash-
core/lib/logstash/agent.rb:367:in `block in converge_state'"]}
Any ideas?
Badger
March 2, 2021, 5:19pm
4
qubusp:
“force_path_style”
Those are curly quotes, use straight quotes: "force_path_style"
system
(system)
Closed
March 30, 2021, 5:19pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.