# Is there any way to monitor elastic search application?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [August 6, 2021, 1:59pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652 "2021-08-06T13:59:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajdeep\_Sahoo](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@Rajdeep\_Sahoo](https://discuss.elastic.co/u/Rajdeep_Sahoo)\
**Post date:** [August 6, 2021, 1:59pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652/1 "2021-08-06T13:59:08Z")

</div>

I am trying to monitor elastic search application and I have found the below ways, and none of them is working for me , please suggest if there is any way to monitor. As part of elastic search application monitoring I want all the features available in an APM dashboard.

i) using elastic apm  
Getting error  
ERROR co.elastic.apm.agent.configuration.ApmServerConfigurationSource - access denied ("java.net.SocketPermission" "localhost:8200" "connect,resolve")

ii) enabling audit log  
Not available for free version , will not get all the metrices.  
iii) enabling slow logs  
Is it going to cause any performance issue for the elastic search application . will not get all the metrices.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 6, 2021, 4:34pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652/2 "2021-08-06T16:34:47Z")

</div>

The proper way to monitor elasticsearch is documented [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/monitor-elasticsearch-cluster.html)

In short you will use metricbeat described [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-metricbeat.html)

Monitoring of a single cluster is available with a basic license

Monitoring with the Elastic APM agent is not supported at this time.

If you have an App that is using the Elastic Agent and that app calls Elasticsearch you will see Elasticsearch as a dependent service and it show transaction rates and latency.

---

<div class="post-metadata">

**Author:** ![Rajdeep\_Sahoo](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@Rajdeep\_Sahoo](https://discuss.elastic.co/u/Rajdeep_Sahoo)\
**Post date:** [August 9, 2021, 6:42am UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652/3 "2021-08-09T06:42:11Z")

</div>

Hi @stephenb ,  
Can this be achieved with the free version of elastic.. I was going through the documentation, there is it mentioned to enable few xpack property. Can this metric beat monitoring feature be achieved in the free version of elastic.

And is it possible to monitor the search requests using metric beat

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 9, 2021, 12:52pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652/4 "2021-08-09T12:52:03Z")

</div>

Yes.

> [@stephenb](#):
>
> Monitoring of a single cluster is available with a basic license

Basic is Free, Basic includes some X-Pack features.

Metricbeat will monitor the rate of indexing and querying it is unclear to me exactly what you mean by "monitor search requests"

Since monitoring a cluster is free and I have provided the link to the documentation I suggest setting it up.

Slow log are available for free.

Audit logging requires a commercial fee based license.

---

<div class="post-metadata">

**Author:** ![Rajdeep\_Sahoo](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@Rajdeep\_Sahoo](https://discuss.elastic.co/u/Rajdeep_Sahoo)\
**Post date:** [August 10, 2021, 1:28pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652/5 "2021-08-10T13:28:06Z")

</div>

After enabling xpack elastic for metric beat we have configured the elastic node which we are trying to monitor.  
But we are getting error as the basic license does not support multi cluster monitoring.

By saying "monitor search request" I wanted to mention all the params related to search requests we want to check. Like for which index we are getting how many search requests, what is the avg response time of the search requests and if any transaction level details etc.

If we enable slowlog and set the time as 0 ms, we are getting all the queries. But will it cause any performance issue.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 10, 2021, 4:43pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652/6 "2021-08-10T16:43:25Z")

</div>

With basic free license you can monitoring a single cluster

To monitor multiple clusters in the same monitoring cluster requires a commercial license.

See [Here](https://www.elastic.co/subscriptions):

 ![Screen Shot 2021-08-10 at 9.42.17 AM](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9f91afe7845001367cd164edcda5c9a8212a03b8.png)

Using slow logs capability for your purpose is typically not recommended.

You can use Elastic APM from your Clients and that will show the Transaction Rate and Response time to/from Elasticsearch for you query and index request.

Typically if you want to log all queries you do that at the client side or with a proxy in front of elasticsearch and then actually ingest those logs to elasticsearch for analysis.

---

<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:** [September 7, 2021, 4:44pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-monitor-elastic-search-application/280652/7 "2021-09-07T16:44:20Z")

</div>

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