Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested fields are not displayed on Kibana #4906

Closed
Mayons95 opened this issue Nov 18, 2022 · 1 comment · Fixed by #4925
Closed

Nested fields are not displayed on Kibana #4906

Mayons95 opened this issue Nov 18, 2022 · 1 comment · Fixed by #4925
Assignees
Labels
type/bug Bug issue

Comments

@Mayons95
Copy link
Contributor

Mayons95 commented Nov 18, 2022

Wazuh Elastic Rev Security
4.4 7.17.6, 7.16.3 Xpack
Browser
Chrome, Firefox

Description
Testing the feature implemented on PR #4428 I found that trying to open nested field using Kibana 7.17.6 an error it's displayed

Preconditions
It's needs to have alerts with nested fields

Steps to reproduce

  1. Navigate to security events dashboard
  2. Click on one alert that has nested fields

Expected Result

  1. The alert should be displayed correctly

Actual Result

  1. A error it's displayed

Screenshots

Screencast.from.18-11-22.15.10.38.webm

Additional context
Add any other context about the problem here. Here you can paste log entries too or any other useful information that may help with the issue.

@Mayons95 Mayons95 added the type/bug Bug issue label Nov 18, 2022
@asteriscos asteriscos self-assigned this Nov 29, 2022
@gdiazlo gdiazlo moved this to Triage in Release 4.4.0 Dec 2, 2022
@davidjiglesias davidjiglesias moved this from Triage to In Progress in Release 4.4.0 Dec 13, 2022
@gdiazlo gdiazlo moved this from In Progress to In Review in Release 4.4.0 Dec 19, 2022
@asteriscos asteriscos moved this from In Review to Done in Release 4.4.0 Dec 20, 2022
@asteriscos
Copy link
Member

Solution

formatHit is no longer a method of the IndexPattern class in Kibana 7.16+, so to detect if a field is known we have to use our own formatHit function in:
public/kibana-integrations/lib/format_hit.ts

And also enhance this function to detect if a field value is an array, so we can format it whether is known or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
No open projects
Status: Done
2 participants