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

Cherry-pick #18436 to 7.8: Don't set dns.resolved_ip with invalid IP addresses #18469

Merged
merged 1 commit into from
May 13, 2020

Conversation

andrewkroh
Copy link
Member

Cherry-pick of PR #18436 to 7.8 branch. Original message:

What does this PR do?

Sometimes the DNS IP addresses from Sysmon in winlog.event_data.QueryResults are truncated.
The leads to mapping exceptions since the value is not of type ip in Elasticsearch.

To fix this the module will now filter any results that are not valid IP addresses.

Why is it important?

The issue causes mapping exceptions that could lead to dropped events.

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

Fixes #18432

Sometimes the DNS IP addresses from Sysmon in `winlog.event_data.QueryResults` are truncated.
The leads to mapping exceptions since the value is not of type `ip` in Elasticsearch.

To fix this the module will now filter any results that are not valid IP addresses.

Fixes elastic#18432

(cherry picked from commit ecd0f72)
@andrewkroh andrewkroh requested a review from a team as a code owner May 12, 2020 23:12
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 12, 2020
@andrewkroh andrewkroh added Team:SIEM and removed needs_team Indicates that the issue/PR needs a Team:* label labels May 12, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@andrewkroh andrewkroh requested a review from marc-gr May 12, 2020 23:12
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 12, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [andrewkroh commented: Run tests]

  • Start Time: 2020-05-13T11:12:48.972+0000

  • Duration: 54 min 38 sec (3217873)

Test stats 🧪

Test Results
Failed 0
Passed 81
Skipped 0
Total 81

@andrewkroh
Copy link
Member Author

Run tests

@andrewkroh andrewkroh merged commit d279ff7 into elastic:7.8 May 13, 2020
@andrewkroh andrewkroh deleted the backport_18436_7.8 branch January 14, 2022 14:06
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.

3 participants