Skip to content

[m365_defender] Fix event.query type to group - #6696

Merged
bhapas merged 1 commit into
elastic:mainfrom
bhapas:sdh-3427-query-mapping
Jun 26, 2023
Merged

[m365_defender] Fix event.query type to group#6696
bhapas merged 1 commit into
elastic:mainfrom
bhapas:sdh-3427-query-mapping

Conversation

@bhapas

@bhapas bhapas commented Jun 26, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR fixes the m365_defender.event.query type to group instead of keyword. This blocked ingesting all the documents that contained this as a group

Checklist

@bhapas bhapas added Team:Security-External Integrations Integration:m365_defender Microsoft Defender XDR bugfix Pull request that fixes a bug issue labels Jun 26, 2023
@bhapas bhapas self-assigned this Jun 26, 2023
@bhapas
bhapas force-pushed the sdh-3427-query-mapping branch from b479b1c to 56cd8b9 Compare June 26, 2023 08:14
@elasticmachine

elasticmachine commented Jun 26, 2023

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-06-26T10:57:20.672+0000

  • Duration: 15 min 4 sec

Test stats 🧪

Test Results
Failed 0
Passed 26
Skipped 0
Total 26

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@bhapas bhapas changed the title Fix event.query type to group Jun 26, 2023
@elasticmachine

elasticmachine commented Jun 26, 2023

Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (3/3) 💚
Files 100.0% (7/7) 💚
Classes 100.0% (7/7) 💚
Methods 87.952% (73/83) 👍 62.952
Lines 91.011% (4698/5162) 👎 -8.989
Conditionals 100.0% (0/0) 💚
@bhapas
bhapas marked this pull request as ready for review June 26, 2023 08:29
@bhapas
bhapas requested a review from a team as a code owner June 26, 2023 08:29
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@ShourieG ShourieG left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ShourieG

Copy link
Copy Markdown
Contributor

/test

@bhapas
bhapas merged commit 81c68ff into elastic:main Jun 26, 2023
@bhapas
bhapas deleted the sdh-3427-query-mapping branch June 26, 2023 11:13
@elasticmachine

Copy link
Copy Markdown

Package m365_defender - 1.11.1 containing this change is available at https://epr.elastic.co/search?package=m365_defender

type: ip
description: Public IP address used by the onboarded machine to connect to the Microsoft Defender for Endpoint service. This could be the IP address of the machine itself, a NAT device, or a proxy.
- name: query
type: keyword

@andrewkroh andrewkroh Jun 26, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any field definition that contains fields and is not marked as type: group should be considered an error. I can't think of any valid use case to allow this. Can you @jsoriano? I'm thinking this might be a good candidate for a package-spec validation rule if there are no exceptions to the rule.

orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:m365_defender Microsoft Defender XDR

4 participants