# 'path.config' (-f) and 'config.string' (-e) can't be used simultaneously

**URL:** https://discuss.elastic.co/t/path-config-f-and-config-string-e-cant-be-used-simultaneously/117848
**Category:** Logstash
**Created:** [January 31, 2018, 3:35pm UTC](https://discuss.elastic.co/t/path-config-f-and-config-string-e-cant-be-used-simultaneously/117848 "2018-01-31T15:35:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ahtelzhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahtelzhang/32/27044_2.png) [@ahtelzhang](https://discuss.elastic.co/u/ahtelzhang)
#### Post date: [January 31, 2018, 3:35pm UTC](https://discuss.elastic.co/t/path-config-f-and-config-string-e-cant-be-used-simultaneously/117848/1 "2018-01-31T15:35:52Z")

</div>

Hi, when I execute "bin/logstash -e 'input { stdin { } } output { stdout {} }' , but have error:

[root@logstash-1 logstash]# bin/logstash -e 'input { stdin { } } output { stdout {} }'  
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties  
ERROR: Settings 'path.config' (-f) and 'config.string' (-e) can't be used simultaneously.  
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 you help me? thank you.

---

<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: [February 28, 2018, 3:36pm UTC](https://discuss.elastic.co/t/path-config-f-and-config-string-e-cant-be-used-simultaneously/117848/2 "2018-02-28T15:36:11Z")

</div>

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