# Logs of an Elasticsearch

**URL:** <https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [December 1, 2020, 5:44am UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156 "2020-12-01T05:44:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vineeth\_varma](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@Vineeth\_varma](https://discuss.elastic.co/u/Vineeth_varma)\
**Post date:** [December 1, 2020, 5:44am UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156/1 "2020-12-01T05:44:07Z")

</div>

Hi,

I have deployed Elasticsearch 7.10.0 in kubernetes using Operator.  
I have path.logs: /usr/share/elasticsearch/logs , here I am getting only gc.log  
Apart from this I am not getting any elasticsearch logs. So here my main point is where do I get application/server logs of an elasticsearch. For this do I have to add some configurations or what??  
Help would really appreciated.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Vineeth\_varma](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@Vineeth\_varma](https://discuss.elastic.co/u/Vineeth_varma)\
**Post date:** [December 1, 2020, 3:32pm UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156/2 "2020-12-01T15:32:44Z")

</div>

Can anyone help me on this?

---

<div class="post-metadata">

**Author:** ![michael.morello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.morello/32/47448_2.png) [@michael.morello](https://discuss.elastic.co/u/michael.morello)\
**Post date:** [December 1, 2020, 4:06pm UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156/3 "2020-12-01T16:06:53Z")

</div>

Hi,

Elasticsearch logs are sent to the standard output. You can use [`kubectl logs <pod>`](https://kubernetes.io/docs/concepts/cluster-administration/logging/) to get them.

We recently published [a blog post](https://www.elastic.co/blog/elastic-stack-monitoring-with-elastic-cloud-on-kubernetes) to show how to collect those logs with the help of Filebeat and send them to a monitoring cluster.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![Vineeth\_varma](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@Vineeth\_varma](https://discuss.elastic.co/u/Vineeth_varma)\
**Post date:** [December 2, 2020, 7:27am UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156/4 "2020-12-02T07:27:33Z")

</div>

Hi @michael.morello  
Does it require any licence to enable the things that you have mentioned in the blog post  
beacause I have observed some xpack parameters we have to enable.

---

<div class="post-metadata">

**Author:** ![Vineeth\_varma](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@Vineeth\_varma](https://discuss.elastic.co/u/Vineeth_varma)\
**Post date:** [December 3, 2020, 5:41am UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156/5 "2020-12-03T05:41:59Z")

</div>

Is it possible to send Elasticsearch logs which are sent to standard output, to a file inside pod.

---

<div class="post-metadata">

**Author:** ![rory.hunter](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@rory.hunter](https://discuss.elastic.co/u/rory.hunter)\
**Post date:** [December 8, 2020, 9:48am UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156/6 "2020-12-08T09:48:47Z")

</div>

It will become possible to write logs files in the container after a change for [https://github.com/elastic/elasticsearch/issues/62758](https://github.com/elastic/elasticsearch/issues/62758) is merged and released.

---

<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 4, 2022, 8:18am UTC](https://discuss.elastic.co/t/logs-of-an-elasticsearch/257156/9 "2022-11-04T08:18:43Z")

</div>


