elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.24k forks source link

Kibana [esaggs] > aggs is undefined #46475

Closed smerzlyakov closed 4 years ago

smerzlyakov commented 5 years ago

Kibana version: 7.2 Elasticsearch version: 7.2 Server OS version: Centos 7 Browser version: Firefox Browser OS version: Mac Original install method (e.g. download page, yum, from source, etc.): rpm Describe the bug: my working dashboard with visualisations returns only error "Kibana [esaggs] > aggs is undefined" Steps to reproduce:

  1. I think i manipulates with index patterns - deletes "winlogbeat" and than create again.
  2. I change index pattern string in saved object, so now it correct.
  3. Maybe i do some another things, but i do not change indexies or another parts in visualisation or saved object.

Expected behavior:

Screenshots (if relevant): Снимок экрана 2019-09-24 в 18 32 49 Снимок экрана 2019-09-24 в 18 31 59 Снимок экрана 2019-09-24 в 18 33 11

Code of visualisation (if nessesarry): { "title": "Win: All eventid code numbers", "type": "table", "params": { "perPage": 100, "showPartialRows": true, "showMetricsAtAllLevels": false, "sort": { "columnIndex": null, "direction": null }, "showTotal": false, "totalFunc": "sum", "dimensions": { "metrics": [ { "accessor": 3, "format": { "id": "number" }, "params": {}, "aggType": "count" } ], "buckets": [ { "accessor": 0, "format": { "id": "terms", "params": { "id": "string", "otherBucketLabel": "Other", "missingBucketLabel": "Missing" } }, "params": {}, "aggType": "terms" }, { "accessor": 2, "format": { "id": "terms", "params": { "id": "string", "otherBucketLabel": "Other", "missingBucketLabel": "Missing" } }, "params": {}, "aggType": "terms" } ] } }, "aggs": [ { "id": "1", "enabled": true, "type": "count", "schema": "metric", "params": {} }, { "id": "2", "enabled": true, "type": "terms", "schema": "bucket", "params": { "field": "event.code", "order": "desc", "size": 500, "orderBy": "1", "otherBucket": true, "otherBucketLabel": "Other", "missingBucket": true, "missingBucketLabel": "Missing" } }, { "id": "3", "enabled": true, "type": "terms", "schema": "bucket", "params": { "field": "event.action", "order": "desc", "size": 500, "orderBy": "1", "otherBucket": true, "otherBucketLabel": "Other", "missingBucket": false, "missingBucketLabel": "Missing" } } ] } Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

elasticmachine commented 5 years ago

Pinging @elastic/kibana-app-arch

lukeelmers commented 4 years ago

Hi @smerzlyakov, are you still experiencing this issue? Just want to make sure I understand how to reproduce it correctly. From what I understand:

  1. Create a visualization & save it.
  2. Delete the index pattern backing that visualization.
  3. Create a new index pattern for the visualization (so the ID is different).
  4. Manually update the saved object.
  5. Esaggs error happens when viewing visualization.

Does that sound right?

ppisljar commented 4 years ago

please reopen if this is still valid