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

Multiple Widgets Error: OpenSearch exception type=null_pointer_exception #14386

Closed
jivepig opened this issue Jan 9, 2023 · 9 comments
Closed
Assignees
Labels

Comments

@jivepig
Copy link

jivepig commented Jan 9, 2023

Previously on V4.3 these widgets were loaded with empty widgets with no data. Some for the data captured worked. Now in V5 Multiple widgets are displaying an error:

While retrieving data for this widget, the following error(s) occurred:
OpenSearch exception [type=null_pointer_exception, reason=Cannot invoke "org.opensearch.search.aggregations.InternalAggregations.getSerializedSize()" because "reducePhase.aggregations" is null].

Expected Behavior

Graylog with no logs or Graylog with Logs should not have this error.

Current Behavior

Dashboards and widgets impacted:

  • Fortigate Overview -DNS Overview Tab-> DNS Messages by Severity Over Time Widget
  • Fortigate Overview -Application Control Overview Tab-> Application Control Messages by Severity Over Time widget
  • SonicWall NGFW Overview -Overview Tab->Messages by Severity Over Time Widget
    image

image
image

Possible Solution

Unknown

Steps to Reproduce (for bugs)

As noted

Context

Failed widget load

Your Environment

  • Graylog Version:V5.02
  • Java Version: V17
  • Elasticsearch Version: 2.4 & V1.3
  • MongoDB Version:6
  • Operating System:Ubuntu/Docker
  • Browser version:/na
@jivepig jivepig added the bug label Jan 9, 2023
@jivepig
Copy link
Author

jivepig commented Jan 9, 2023

Illuminate V3.1 is installed.

@janheise
Copy link
Contributor

janheise commented Jan 9, 2023

@jivepig Hi, just for clarification can you confirm: in v4.3 this worked with OpenSearch 1.3?

@jivepig
Copy link
Author

jivepig commented Jan 9, 2023

Yes It worked in my instance on V4.3 and it running Opensearch V1.3

@janheise
Copy link
Contributor

janheise commented Jan 9, 2023

thx.

@janheise janheise self-assigned this Jan 10, 2023
@janheise
Copy link
Contributor

@jivepig Sorry to ask again: I could not reproduce the problem with GL5 and OpenSearch 1.3. Was this a combination that you had tested?

@janheise
Copy link
Contributor

Michael confirmed that it started with using 2.x

@janheise
Copy link
Contributor

janheise commented Feb 22, 2023

The changes in aggregations made for 5.x were modified and backported to 5.0 so that the old logic is in place again. These errors should no longer occur. The new logic is still available for aggregations, but in a way that it's not "crashing" existing widgets.
Regarding the underlying problem: the OpenSearch team has been notified about the problem and they seem to address the bug, too.

@jivepig
Copy link
Author

jivepig commented Feb 22, 2023

Currently Graylog V5.0.3 and OpenSearch V2.5, I do not see these errors now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants