# Issue to run logstash

**URL:** <https://discuss.elastic.co/t/issue-to-run-logstash/353717>\
**Category:** Logstash\
**Created:** [February 20, 2024, 4:36pm UTC](https://discuss.elastic.co/t/issue-to-run-logstash/353717 "2024-02-20T16:36:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boubou](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@boubou](https://discuss.elastic.co/u/boubou)\
**Post date:** [February 20, 2024, 4:36pm UTC](https://discuss.elastic.co/t/issue-to-run-logstash/353717/1 "2024-02-20T16:36:39Z")

</div>

Hello everyone,

I am using Redhat and logstash8.2.0. I want to start my logstash instance, so I execute the following command:

`bin/logstash -f /bin/logstash-8.2.0/config/logstash.yml`

Here's the error I get:

`[2024-02-20T17:22:54,020][ERROR][logstash.agent] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [\t\r\n], "#", "input", "filter", "output" at line 19, column 1 (byte 322) after ", :backtrace=>["/bin/logstash-8.2.0/logstash-core/lib/logstash/compiler.rb:32:in `compile\_imperative'", "org/logstash/execution/AbstractPipelineExt.java:189:in `initialize'", "org/logstash/execution/JavaBasePipelineExt.java:72:in `initialize'", "/bin/logstash-8.2.0/logstash-core/lib/logstash/java\_pipeline.rb:47:in `initialize'", "/bin/logstash-8.2.0/logstash-core/lib/logstash/pipeline_action/create.rb:50:in `execute'", "/bin/logstash-8.2.0/logstash-core/lib/logstash/agent.rb:381:in `block in converge_state'"]}`

This is strange because my logstash.yml file only contains comments, except on line 19 which is:

`node.name: test`

Do you have any idea where the error is coming from?

Thanks in advance for your help !

Regards

---

<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:** [February 20, 2024, 5:07pm UTC](https://discuss.elastic.co/t/issue-to-run-logstash/353717/2 "2024-02-20T17:07:43Z")

</div>

path.config (the -f option) should point to a .conf file that defines inputs, filters, and outputs. It should not point to logstash.yml, which logstash will look for in path.settings.

---

<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:** [March 19, 2024, 5:08pm UTC](https://discuss.elastic.co/t/issue-to-run-logstash/353717/3 "2024-03-19T17:08:39Z")

</div>

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