Logstash [ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}

Hi all, i am trying file configuration logstash like this

input {
    http_poller {
        urls => {
            users => {
                method => get
                user => "user"
                password => "password"
                url => "https://example-api.id/api/products?graphql={ code,brand,desc,qty,id,createdAt,updatedAt,money,status,transferservice,balanceservice,purchasecontractd, loctypes { description }, prequisitionds { qty}, categories { desc }, units { desc }, pods { qty} }"
                headers => {
                    "Content-Type" => "application/json"
                    Authorization => "Bearer token"
                }
            }   
        }
        request_timeout => 60
        schedule => { every => "20s"}
        codec => "json" 
        type => "Http_poller"  
    }
}

output {
    elasticsearch {
        hosts => ["localhost:9200"]
        index => "example"
    }
    stdout {
        codec => rubydebug 
    }
}

But i have eror when i run file configuration in Command Prompt

Do you have any solution?

If you enable log.level debug do you get a more informative error message?

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