# 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}

**URL:** <https://discuss.elastic.co/t/logstash-error-logstash-agent-failed-to-execute-action-id-main-action-type-logstash-failedaction-message-could-not-execute-action-pipelineaction-create-main-action-result-false-backtrace-nil/256348>\
**Category:** Logstash\
**Created:** [November 23, 2020, 11:27am UTC](https://discuss.elastic.co/t/logstash-error-logstash-agent-failed-to-execute-action-id-main-action-type-logstash-failedaction-message-could-not-execute-action-pipelineaction-create-main-action-result-false-backtrace-nil/256348 "2020-11-23T11:27:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![salma\_widiarti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/salma_widiarti/32/78306_2.png) [@salma\_widiarti](https://discuss.elastic.co/u/salma_widiarti)\
**Post date:** [November 23, 2020, 11:27am UTC](https://discuss.elastic.co/t/logstash-error-logstash-agent-failed-to-execute-action-id-main-action-type-logstash-failedaction-message-could-not-execute-action-pipelineaction-create-main-action-result-false-backtrace-nil/256348/1 "2020-11-23T11:27:13Z")

</div>

Hi all, i am trying file configuration logstash like this

```auto
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

 ![photo_2020-11-23_12-31-44](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6b10fa36e5157d026dbe57d15b493798e977aee8.jpeg)

Do you have any solution?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 23, 2020, 2:39pm UTC](https://discuss.elastic.co/t/logstash-error-logstash-agent-failed-to-execute-action-id-main-action-type-logstash-failedaction-message-could-not-execute-action-pipelineaction-create-main-action-result-false-backtrace-nil/256348/2 "2020-11-23T14:39:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 21, 2020, 2:39pm UTC](https://discuss.elastic.co/t/logstash-error-logstash-agent-failed-to-execute-action-id-main-action-type-logstash-failedaction-message-could-not-execute-action-pipelineaction-create-main-action-result-false-backtrace-nil/256348/3 "2020-12-21T14:39:37Z")

</div>

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