elastic / kibana

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

[Security Solution] The Alerts > Counts visualization shows `No data to display` for single-dimensional queries #156923

Closed andrew-goldstein closed 1 year ago

andrew-goldstein commented 1 year ago

The Alerts > Counts visualization displays multi-dimensional queries correctly, but shows No data to display for single-dimensional queries.

Kibana/Elasticsearch Stack version:

main / v8.8.0

Steps to reproduce:

  1. Navigate to Security > Alerts
  2. Select the Counts visualization

Expected result

  1. Click to select the Treemap visualization

Expected result

  1. In the Treemap visualization, delete the Group by top host.name query dimension

Expected result

  1. Inspect the Tremap request

Expected result

{
  "size": 0,
  "aggs": {
    "stackByField0": {
      "terms": {
        "field": "kibana.alert.rule.name",
        "order": {
          "_count": "desc"
        },
        "size": 1000
      },
      "aggs": {
        "maxRiskSubAggregation": {
          "max": {
            "field": "kibana.alert.risk_score"
          }
        }
      }
    }
  },
  "query": {
    "bool": {
      "filter": [
        {
          "bool": {
            "must": [],
            "filter": [
              {
                "match_phrase": {
                  "kibana.alert.workflow_status": "open"
                }
              }
            ],
            "should": [],
            "must_not": [
              {
                "exists": {
                  "field": "kibana.alert.building_block_type"
                }
              }
            ]
          }
        },
        {
          "range": {
            "@timestamp": {
              "gte": "2023-05-05T06:00:00.000Z",
              "lte": "2023-05-06T05:59:59.999Z"
            }
          }
        }
      ]
    }
  }
}
  1. Close the Treemap Inspect popover

  2. In the Alerts page, click Counts to view the Counts table again

Expected result

Actual result

alert_counts_no_data

elasticmachine commented 1 year ago

Pinging @elastic/security-solution (Team: SecuritySolution)

elasticmachine commented 1 year ago

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

MadameSheema commented 1 year ago

@karanbirsingh-qasource @sukhwindersingh-qasource please validate the fix on next BC. Thanks!

ghost commented 1 year ago

Hi @MadameSheema

we have validated this issue on 8.8 BC3 and found the issue to be fixed ✔️ .

Build Details:

Version: 8.8 BC3
Commit:85b22d307ab93fca95c1698ede4cb61d85f3d314
Build:62994

Screen-Cast:

Observations

1

Hence we are Closing this issue and adding QA:Validated label to it.

thanks !!