# Log ELSER inference time

**URL:** <https://discuss.elastic.co/t/log-elser-inference-time/345057>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [October 15, 2023, 10:05pm UTC](https://discuss.elastic.co/t/log-elser-inference-time/345057 "2023-10-15T22:05:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvarano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cvarano/32/122082_2.png) [@cvarano](https://discuss.elastic.co/u/cvarano)\
**Post date:** [October 15, 2023, 10:05pm UTC](https://discuss.elastic.co/t/log-elser-inference-time/345057/1 "2023-10-15T22:05:32Z")

</div>

When using ELSER, you can find the "Avg. inference time" under Kibana \> Analytics \> Machine Learning \> Model Management \> Trained Models.

I cannot find any logs related to inference time when searching in Analytics \> Discover.

Are the raw inference timing logs available, or is there somewhere I can configure this?

---

<div class="post-metadata">

**Author:** ![iulia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iulia/32/124658_2.png) [@iulia](https://discuss.elastic.co/u/iulia)\
**Post date:** [October 16, 2023, 8:44am UTC](https://discuss.elastic.co/t/log-elser-inference-time/345057/2 "2023-10-16T08:44:16Z")

</div>

Hi!  
To view data under discover in kibana you need to have a data view created for the index that contains that data - which is not built by default for model metadata.

You can search through the metadata with the API using the dev tool (or your preferred language) with these commands: [Get trained models statistics API | Elasticsearch Guide [8.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html)

You can get the ELSER model stats with this command:

```auto
GET _ml/trained_models/<model_id_or_deployment_id>/_stats

```

You will see the inference data (including avg time) under the node info in the response.

If you want to use discover to explore more of this data you can create a data stream or index for this and then build a data view

> **[Create a Data view | Kibana Guide \[8.10\] | Elastic](https://www.elastic.co/guide/en/kibana/current/data-views.html)**

Hope this helps!  
Cheers,  
Iulia

---

<div class="post-metadata">

**Author:** ![cvarano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cvarano/32/122082_2.png) [@cvarano](https://discuss.elastic.co/u/cvarano)\
**Post date:** [October 16, 2023, 4:47pm UTC](https://discuss.elastic.co/t/log-elser-inference-time/345057/3 "2023-10-16T16:47:16Z")

</div>

Thank you, iulia! I was wondering if the raw data is available, not just the rolling average?

---

<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 13, 2023, 4:48pm UTC](https://discuss.elastic.co/t/log-elser-inference-time/345057/4 "2023-11-13T16:48:12Z")

</div>

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