# Logstash Embedded ElasticSearch Logging config

**URL:** <https://discuss.elastic.co/t/logstash-embedded-elasticsearch-logging-config/18035>\
**Category:** Elasticsearch\
**Created:** [June 11, 2014, 7:02am UTC](https://discuss.elastic.co/t/logstash-embedded-elasticsearch-logging-config/18035 "2014-06-11T07:02:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_Kong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pete_kong/32/1499_2.png) [@Pete\_Kong](https://discuss.elastic.co/u/Pete_Kong)\
**Post date:** [June 11, 2014, 7:02am UTC](https://discuss.elastic.co/t/logstash-embedded-elasticsearch-logging-config/18035/1 "2014-06-11T07:02:07Z")

</div>

I am using logstash1.4.1 and config the output to embedded elasticsearch like this :  
output {  
elasticsearch {  
embedded =\> true  
index =\> "logstash-%{type}"  
}  
}  
I also add -Des.path.conf=\<diretory path of elasticsearch.yml/logging.yml files\> as one of the parameters to start logstash.  
In the elasticsearch.yml , I have configure the path.data, path.conf ,path.logs . And the index data can be created in the \<path.data\> , but the logs can not be created in the \<path.logs\>.  
How can I make the embedded elasticsearch output its logs to my indicated file ?

Thanks !  
Pete

---

<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:** [July 6, 2017, 1:23am UTC](https://discuss.elastic.co/t/logstash-embedded-elasticsearch-logging-config/18035/2 "2017-07-06T01:23:26Z")

</div>


