# First pipeline issue in logstash config

**URL:** https://discuss.elastic.co/t/first-pipeline-issue-in-logstash-config/103720
**Category:** Logstash
**Created:** [October 12, 2017, 12:15pm UTC](https://discuss.elastic.co/t/first-pipeline-issue-in-logstash-config/103720 "2017-10-12T12:15:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![prachi1](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@prachi1](https://discuss.elastic.co/u/prachi1)
#### Post date: [October 12, 2017, 12:15pm UTC](https://discuss.elastic.co/t/first-pipeline-issue-in-logstash-config/103720/1 "2017-10-12T12:15:09Z")

</div>

After creating basic lostash.conf file and running the command to verify it ..I get the error as follows -

logstash.conf  
input {  
beats {  
port =\> "5044"  
}  
}

# The filter part of this file is commented out to indicate that it is

# optional.

# filter {

# 

# }

output {  
stdout { codec =\> rubydebug }  
}

command -  
C:\elastic\logstash-5.2.0\bin\>logstash -f logstash.conf --config.test\_and\_exit

Could not find log4j2 configuration at path /elastic/logstash-5.2.0/config/log4j  
2.properties. Using default config which logs to console  
17:36:53.317 [LogStash::Runner] INFO logstash.runner - No config files found in  
path {:path=\>"C:/elastic/logstash-5.2.0/bin/logstash.conf"}  
17:36:53.373 [LogStash::Runner] FATAL logstash.runner - An unexpected error occu  
rred! {:error=\>#\<RuntimeError: No config files found: logstash.conf. Can you mak  
e sure this path is a logstash config file?\>, :backtrace=\>["C:/elastic/logstash-  
5.2.0/logstash-core/lib/logstash/config/loader.rb:18:in `format_config'", "C:/el astic/logstash-5.2.0/logstash-core/lib/logstash/runner.rb:250:in`execute'", "C:  
/elastic/logstash-5.2.0/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/comma  
nd.rb:67:in `run'", "C:/elastic/logstash-5.2.0/logstash-core/lib/logstash/runner .rb:183:in`run'", "C:/elastic/logstash-5.2.0/vendor/bundle/jruby/1.9/gems/clamp  
-0.6.5/lib/clamp/command.rb:132:in `run'", "C:\\elastic\\logstash-5.2.0\\lib\\bo otstrap\\environment.rb:71:in`(root)'"]}

---

<div class="post-metadata">

### Author: ![paz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paz/32/28003_2.png) [@paz](https://discuss.elastic.co/u/paz)
#### Post date: [October 12, 2017, 1:47pm UTC](https://discuss.elastic.co/t/first-pipeline-issue-in-logstash-config/103720/2 "2017-10-12T13:47:02Z")

</div>

The error is pretty self-explanatory:

> [@](#):
>
> 17:36:53.317 [LogStash::Runner] INFO logstash.runner - No config files found in path {:path=\>"C:/elastic/logstash-5.2.0/bin/logstash.conf"}

Logstash cannot find the configuration file because you are not providing a full path to it, just the name. So it searches in the current dir (../logstash/bin) which I assume is not where you put it. Just provide the full path in the argument and you should be ok.

---

<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: [November 9, 2017, 1:47pm UTC](https://discuss.elastic.co/t/first-pipeline-issue-in-logstash-config/103720/3 "2017-11-09T13:47:03Z")

</div>

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