# How to solve this error in kibana?

**URL:** <https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777>\
**Category:** Kibana\
**Created:** [April 20, 2020, 4:05am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777 "2020-04-20T04:05:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [April 20, 2020, 4:05am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777/1 "2020-04-20T04:05:06Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/2392fd67cc2691727c0dd349da045acdf0e94aa1.png)

Discover found the error.  
Looking at the kibana and elasticsearch logs, there are no errors.  
What is the cause and how to fix it?

---

<div class="post-metadata">

**Author:** ![Roshan\_Jha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roshan_jha/32/50716_2.png) [@Roshan\_Jha](https://discuss.elastic.co/u/Roshan_Jha)\
**Post date:** [April 20, 2020, 4:19am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777/2 "2020-04-20T04:19:11Z")

</div>

Hi, whenever some error is shown in kibana discovery it gives error in background, please check and how you are running kibana service, if possible please paste kibana query which you are running in discovery.

---

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [April 20, 2020, 7:05am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777/3 "2020-04-20T07:05:00Z")

</div>

Here is query in inspect of discover.

```
    {
  "version": true,
  "size": 500,
  "sort": [
    {
      "@timestamp": {
        "order": "desc",
        "unmapped_type": "boolean"
      }
    }
  ],
  "aggs": {
    "2": {
      "date_histogram": {
        "field": "@timestamp",
        "fixed_interval": "3h",
        "time_zone": "Asia/Seoul",
        "min_doc_count": 1
      }
    }
  },
  "stored_fields": [
    "*"
  ],
  "script_fields": {},
  "docvalue_fields": [
    {
      "field": "@kst_timestamp",
      "format": "date_time"
    },
    {
      "field": "@timestamp",
      "format": "date_time"
    },
    {
      "field": "object.@kst_event_start_timestamp",
      "format": "date_time"
    },
    {
      "field": "object.event_start_time",
      "format": "date_time"
    },
    {
      "field": "timestamp",
      "format": "date_time"
    }
  ],
  "_source": {
    "excludes": []
  },
  "query": {
    "bool": {
      "must": [],
      "filter": [
        {
          "match_all": {}
        },
        {
          "range": {
            "@timestamp": {
              "gte": "2020-04-18T15:00:00.000Z",
              "lte": "2020-04-25T14:59:59.999Z",
              "format": "strict_date_optional_time"
            }
          }
        }
      ],
      "should": [],
      "must_not": []
    }
  },
  "highlight": {
    "pre_tags": [
      "@kibana-highlighted-field@"
    ],
    "post_tags": [
      "@/kibana-highlighted-field@"
    ],
    "fields": {
      "*": {}
    },
    "fragment_size": 2147483647
  }
}
```

---

<div class="post-metadata">

**Author:** ![Roshan\_Jha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roshan_jha/32/50716_2.png) [@Roshan\_Jha](https://discuss.elastic.co/u/Roshan_Jha)\
**Post date:** [April 20, 2020, 9:47am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777/4 "2020-04-20T09:47:45Z")

</div>

Hi, tried the query which you provided it is not giving any error in my kibana discovery even though it is not providing any error which is obvious, is it working correctly in dev tools and if yes can you show the output.  
Thanks

---

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [April 21, 2020, 2:08am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777/5 "2020-04-21T02:08:42Z")

</div>

The query works fine.  
The above error does not occur continuously, but it occurs occasionally.

It doesn't seem to be a query problem, but I don't know where to look.

Often, bad gateway problems also occur.  
So I set elasticsearch.requestTimeout and elasticsearch.shardTimeout to 3 minutes.

Looking at the stack monitoring, es and kibana both maintain the average speed within 2 seconds.  
The kibana avg response is within 2 seconds and elastic search search latency is within 100 ms.

Nevertheless, there are often problems, which part should I look at?

The proxy is set in front of kibana, is it related to the timeout setting?

---

<div class="post-metadata">

**Author:** ![Roshan\_Jha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roshan_jha/32/50716_2.png) [@Roshan\_Jha](https://discuss.elastic.co/u/Roshan_Jha)\
**Post date:** [April 21, 2020, 8:38am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777/6 "2020-04-21T08:38:17Z")

</div>

The timeout you are setting is max because elastic will never take that much time to execute the query, atleast in your case. in case of your can you disable the proxy in front of kibana and what about the running the same query directly in elastic without using kibana ?.

---

<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:** [May 19, 2020, 8:38am UTC](https://discuss.elastic.co/t/how-to-solve-this-error-in-kibana/228777/7 "2020-05-19T08:38:19Z")

</div>

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