# Query logs

**URL:** <https://discuss.elastic.co/t/query-logs/347119>\
**Category:** Kibana\
**Tags:** elastic-stack-monitoring, docker\
**Created:** [November 14, 2023, 12:44pm UTC](https://discuss.elastic.co/t/query-logs/347119 "2023-11-14T12:44:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VijayIQA](https://avatars.discourse-cdn.com/v4/letter/v/e19b73/32.png) [@VijayIQA](https://discuss.elastic.co/u/VijayIQA)\
**Post date:** [November 14, 2023, 12:44pm UTC](https://discuss.elastic.co/t/query-logs/347119/1 "2023-11-14T12:44:59Z")

</div>

Hi Team, I have Elastic Cluster with 2 nodes. it acts as database. with test index  
how to know or how to monitor query response time.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [November 14, 2023, 10:51pm UTC](https://discuss.elastic.co/t/query-logs/347119/2 "2023-11-14T22:51:07Z")

</div>

Hi, do you have Kibana configured? If so, you can monitor response times in Stack Monitoring.

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cfc2f61e49a25966362298a32057f829a484ad32.png)

---

<div class="post-metadata">

**Author:** ![VijayIQA](https://avatars.discourse-cdn.com/v4/letter/v/e19b73/32.png) [@VijayIQA](https://discuss.elastic.co/u/VijayIQA)\
**Post date:** [November 15, 2023, 3:24am UTC](https://discuss.elastic.co/t/query-logs/347119/3 "2023-11-15T03:24:21Z")

</div>

@lukas hey thanks for the response. Yes, I enabled stack monitoring.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/9/e9dff57e50d554e0cf409c407f1d6fe8c76b25e9.png)

I followed these directions [link.](https://www.elastic.co/guide/en/beats/filebeat/8.8/filebeat-module-elasticsearch.html)  
in that var.path i mentioned log path but in that but unable locate logs that logs directory was empty. here is the elasticsearh.yml file

```auto
cluster.name: "docker-cluster"
network.host: 0.0.0.0
path.logs: /usr/share/elasticsearch/logs/es
#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically
# generated to configure Elasticsearch security features on 14-11-2023 12:25:52
#
# --------------------------------------------------------------------------------

# Enable security features
xpack.security.enabled: true

xpack.security.enrollment.enabled: true

# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12

# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
# Create a new cluster with the current node only
# Additional nodes can still join the cluster later
cluster.initial_master_nodes: ["00e4cbfc0ae0"]

```

here is the logs directory.

```auto
elasticsearch@00e4cbfc0ae0:~/logs$ ls
es gc.log.00 gc.log.02 gc.log.04 gc.log.06 gc.log.08 gc.log.10 gc.log.12 gc.log.14 gc.log.16
gc.log gc.log.01 gc.log.03 gc.log.05 gc.log.07 gc.log.09 gc.log.11 gc.log.13 gc.log.15
elasticsearch@00e4cbfc0ae0:~/logs$ cd es/
**elasticsearch@00e4cbfc0ae0:~/logs/es$ ls**
 **elasticsearch@00e4cbfc0ae0:~/logs/es$ pwd**
 **/usr/share/elasticsearch/logs/es**
elasticsearch@00e4cbfc0ae0:~/logs/es$

```

---

<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:** [December 13, 2023, 3:24am UTC](https://discuss.elastic.co/t/query-logs/347119/4 "2023-12-13T03:24:34Z")

</div>

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