# Timeout on Kibana

**URL:** <https://discuss.elastic.co/t/timeout-on-kibana/334444>\
**Category:** Kibana\
**Created:** [May 26, 2023, 2:49pm UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444 "2023-05-26T14:49:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [May 26, 2023, 2:49pm UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/1 "2023-05-26T14:49:22Z")

</div>

Hello,

Getting this error on Kibana graph is I select the period higher than 5 days (probably too many datapoints):

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fd3cc1e887be53d47206c196b3156a60af8aa1e3.jpeg)  
Tried increasing elasticsearch.requestTimeout: 900000 (and restarted kibana service) but this message continues to appear after 30 seconds.

How can I solve this?

PS. Kibana version is 8.5.2.

Best Regards,  
Mihai Radulescu

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [May 26, 2023, 3:41pm UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/2 "2023-05-26T15:41:47Z")

</div>

Hi @mihai.radulescu,

It looks like investigating the slow query to identify what is going on is your best bet. If you have the id of your visualisation you can use the [Elasticsearch slow log](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html). Or you can pull the query for the visualization via the [inspect feature](https://www.elastic.co/guide/en/observability/8.8/inspect.html) in Kibana and then run the query using the[search profiler](https://www.elastic.co/guide/en/kibana/current/xpack-profiler.html).

Both of these approaches are documented in this [blog post](https://www.elastic.co/blog/debugging-kibana-dashboards) for you to follow along.

Let us know if that helps!

---

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [May 29, 2023, 11:18am UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/3 "2023-05-29T11:18:58Z")

</div>

Hi Carly,

Thank you very much for these links, much appreciate. Unfortunately I may be a noob and I have to ask some further clarifying questions:

1. It seems that I don't have the Inspect section, despite the fact that "Inspect ES queries" is enabled:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/c/bcf570276211c5eb863763a23648c4e8266c1809.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee55fc5879a0d0582018a1fb7ad82d74a302285c.png)

(I even tried to restart kibana after enabling this).

1. I have installed APM:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/9/1995fda5535fef497ecabfb14b42fa6b64c459db.png)

but if I go to Observability-\>APM, it doesn't show any data:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63ad65df74bdb86513b366a52ccea73a32c24ae8.png)  
"Add data" will bring me to previous screen.

If I go to inspect, all results are 0:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/6/56a896dfba7e4c9eb38401f4c52eb7fac980ac60.png)

Please help me further setting these up.

Best Regards,  
Mihai Radulescu

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [May 30, 2023, 10:15am UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/4 "2023-05-30T10:15:19Z")

</div>

Hi @mihai.radulescu,

Appreciate the update. I've got some clarifications to your additional questions:

> [@mihai.radulescu](#):
>
> It seems that I don't have the Inspect section, despite the fact that "Inspect ES queries" is enabled:

I see later on a screenshot for the Inspector with the stats and requests tabs that suggests you have access to the Inspector. To confirm, I'm referring to the Inspect feature available in edit mode for a visualisation:

 ![Screenshot 2023-05-30 at 10.51.25](https://us1.discourse-cdn.com/elastic/original/3X/8/6/8696cb78bca1b3816d9e75d363cb4d84df8980e2.png)

I would have a look at the request tab, where you should be able to either view the request in the search profiler directly, or copy and run it in the search profiler:

 ![Screenshot 2023-05-30 at 10.59.36](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f3d4f9314a974a0e018771afea64f0238a07ac62.png)

> [@mihai.radulescu](#):
>
> but if I go to Observability-\>APM, it doesn't show any data:

Have you setup any agents to collect data at all? How was the data view for apm setup previously?

---

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [May 30, 2023, 11:37am UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/5 "2023-05-30T11:37:36Z")

</div>

Hi Carly,

Thanks again for your reply, much appreciate.  
When clicking on the Inspect button from the Vizualization, I do have this screen, but the Statistics tab is missing and there is no "Open in Search Profiler":

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

APM was not setup previously, therefore I believe I have to configure it. I'll try to find out how to setup agents and get back to you.

Best Regards,  
Mihai Radulescu

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [May 31, 2023, 8:55am UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/6 "2023-05-31T08:55:26Z")

</div>

Cool, do let us know how you get on with setting up your agents.

If you can't see the Search Profiler option in the Request tab you can use the `Copy to clipboard` option and access the Search Profiler under `Dev Tools` or using the search bar:

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

---

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [May 31, 2023, 9:22am UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/7 "2023-05-31T09:22:04Z")

</div>

Hi Carly,

Thanks for the hint. I've done this and the query seems to have a reasonable time:

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

I believe that the issue might not be there, but in Kibana, in plotting the graphs. How can I conclude this for sure?

Best Regards,  
Mihai Radulescu

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [May 31, 2023, 2:35pm UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/8 "2023-05-31T14:35:59Z")

</div>

If you think it might be slowness in Kibana over the query I would have a look at investigating via either APM or the Chrome Developer tools. They are covered in the same blog listed above.

---

<div class="post-metadata">

**Author:** ![mihai.radulescu](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mihai.radulescu](https://discuss.elastic.co/u/mihai.radulescu)\
**Post date:** [June 7, 2023, 12:01pm UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/9 "2023-06-07T12:01:00Z")

</div>

Hi Carly,  
I want to go with APM solution since it looks a more elegant one. I have followed this guide to install the node.js agent (since I've read here this is what is needed for debugging Kibana: [Debugging Kibana | Kibana](https://www.elastic.co/guide/en/kibana/current/kibana-debugging.html#kibana-debugging))

Here I can see that at least one agent is running, despite the fact that I didn't do the configuration part (I don't know where to add that config):

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

PS. I also had to do "apt install npm" (I'm on Ubuntu), but I have some doubts that the node.js agent is what I'm looking for, do I maybe need the Java one?

If I click on Launch APM at the bottom, it gets me back here (as if I don't have any active agent):

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/5/05892709e6b03cdc97f84f0b0f8f818ad3554897.png)

but APM is alive:

# systemctl status apm-server.service

● apm-server.service - Elastic APM Server  
Loaded: loaded (/lib/systemd/system/apm-server.service; disabled; vendor preset: enabled)  
Active: active (running) since Wed 2023-06-07 11:45:41 UTC; 7min ago  
Docs: [Application performance monitoring (APM) with Elastic Observability | Elastic](https://www.elastic.co/apm)  
Main PID: 1638999 (apm-server)  
Tasks: 19 (limit: 75793)  
Memory: 18.2M  
CGroup: /system.slice/apm-server.service  
└─1638999 /usr/share/apm-server/bin/apm-server --path.home /usr/share/apm-server --path.config /etc/apm-s\>

Can you please advise further?

Best Regards,  
Mihai Radulescu

---

<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 5, 2023, 12:01pm UTC](https://discuss.elastic.co/t/timeout-on-kibana/334444/10 "2023-07-05T12:01:47Z")

</div>

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