# Sending Logstash's logs to /home/wangyufeng/logstash-5.5.2/logs which is now configured via log4j2.properties ERROR: No configuration file was specified. Perhaps you forgot to provide the '-f yourlogstash.conf' flag?

**URL:** <https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503>\
**Category:** Logstash\
**Created:** [September 6, 2017, 2:49am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503 "2017-09-06T02:49:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![saliormoon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saliormoon/32/21499_2.png) [@saliormoon](https://discuss.elastic.co/u/saliormoon)\
**Post date:** [September 6, 2017, 2:49am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503/1 "2017-09-06T02:49:26Z")

</div>

Elasticsearch version: 5.5.2  
OS: Linux  
Logstash: 5.5.2

When I use the command "./logstash" ro start logstash, it throws such a expception:

SZX1000355659:/home/wangyufeng/logstash-5.5.2/bin # ./logstash  
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.  
Sending Logstash's logs to /home/wangyufeng/logstash-5.5.2/logs which is now configured via log4j2.properties  
ERROR: No configuration file was specified. Perhaps you forgot to provide the '-f yourlogstash.conf' flag?  
usage:  
bin/logstash -f CONFIG\_PATH [-t] [-r] [] [-w COUNT] [-l LOG]  
bin/logstash --modules MODULE\_NAME [-M "MODULE\_NAME.var.PLUGIN\_TYPE.PLUGIN\_NAME.VARIABLE\_NAME=VALUE"] [-t] [-w COUNT] [-l LOG]  
bin/logstash -e CONFIG\_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]  
bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]  
bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]  
bin/logstash --help

Can anyone give me some advice?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 6, 2017, 3:01am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503/2 "2017-09-06T03:01:53Z")

</div>

> [@saliormoon](#):
>
> Perhaps you forgot to provide the ‘-f yourlogstash.conf’ flag?

Did you pass this flag?

---

<div class="post-metadata">

**Author:** ![saliormoon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saliormoon/32/21499_2.png) [@saliormoon](https://discuss.elastic.co/u/saliormoon)\
**Post date:** [September 6, 2017, 3:08am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503/3 "2017-09-06T03:08:27Z")

</div>

But when I run the command: "bin/logstash -e 'input{stdin{}}output{stdout{codec=\>rubydebug}  
}'", it still throws a error:

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.  
Sending Logstash's logs to /home/wangyufeng/logstash-5.5.2/logs which is now configured via log4j2.properties

I have no idea about this, any advice is appreciated.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 6, 2017, 3:29am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503/4 "2017-09-06T03:29:26Z")

</div>

That's an error, but you can ignore it.

---

<div class="post-metadata">

**Author:** ![saliormoon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saliormoon/32/21499_2.png) [@saliormoon](https://discuss.elastic.co/u/saliormoon)\
**Post date:** [September 6, 2017, 4:15am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503/5 "2017-09-06T04:15:06Z")

</div>

Ok, thanks a lot.

---

<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:** [October 4, 2017, 4:15am UTC](https://discuss.elastic.co/t/sending-logstashs-logs-to-home-wangyufeng-logstash-5-5-2-logs-which-is-now-configured-via-log4j2-properties-error-no-configuration-file-was-specified-perhaps-you-forgot-to-provide-the-f-yourlogstash-conf-flag/99503/6 "2017-10-04T04:15:17Z")

</div>

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