Skip to content

Conversation

toepkerd
Copy link
Collaborator

@toepkerd toepkerd commented Jun 12, 2025

Description

Correlations now correlates findings in batches synchronously instead of starting a task for each individual finding. Also performs some prechecks before even correlating in the first place:

  1. is auto correlations setting enabled
  2. does correlation rules index exist
  3. is correlation rules index not empty

For Reviewers

The only file with meaningful changes is TransportCorrelateFindingAction.java, below is a guide to direct your attention to the most important changes:

  • Lines 153-181: prechecks before running correlations at all
  • Lines 303-313: synchronous and timeboxed correlations of findings
  • Lines 558-574: changes to onFailure and onOperation (correlation's version of onSuccess) functionality to support new batch correlations

Related Issues

#1537

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • [N/A] API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • [N/A] Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

implementation 'net.minidev:json-smart:2.5.2'
implementation 'net.minidev:accessors-smart:2.5.2'
compileOnly "com.google.guava:guava:32.1.3-jre"
implementation "com.google.guava:guava:32.1.3-jre"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this?

this.client = client;
this.xContentRegistry = xContentRegistry;
this.detectorIndices = detectorIndices;
this.correlationIndices = correlationIndices;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update this name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants