-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Filebeat] Add Initial Interval for Microsoft Filesets #42309
base: main
Are you sure you want to change the base?
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
@elastic-data-integration @elastic-endpoint-team can anyone please review this PR? |
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
The docs https://github.com/elastic/beats/blob/main/x-pack/filebeat/module/microsoft/_meta/docs.asciidoc will need to be updated to mention the new parameter |
I'm not a required reviewer but this looks to match the integration configuration for m365_defender https://github.com/elastic/integrations/blob/main/packages/m365_defender/data_stream/alert/agent/stream/httpjson.yml.hbs It doesn't look like we offer initial_interval for the endpoint atp integration https://github.com/elastic/integrations/blob/ea91c5762cb71a0c8ab73979509e219a78223b42/packages/microsoft_defender_endpoint/data_stream/log/agent/stream/httpjson.yml.hbs#L34 so i've filed this issue in that repo elastic/integrations#12912 Seems like a low risk change |
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changelog entry to added section for filebeat.
@efd6 added. also added initial interval entry to docs and a small logging fix in sqs. |
@@ -255,7 +255,7 @@ func (r sqsProcessingResult) Done() { | |||
return | |||
} | |||
p.metrics.sqsMessagesDeletedTotal.Inc() | |||
p.log.Errorf("failed processing SQS message (message was deleted): %w", processingErr) | |||
p.log.Errorf("failed processing SQS message (message was deleted): %v", processingErr.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p.log.Errorf("failed processing SQS message (message was deleted): %v", processingErr.Error()) | |
p.log.Errorf("failed processing SQS message (message was deleted): %v", processingErr) |
I'm not sure about having this in this PR since it's an unrelated change. See what other reviewers say.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove this if its an issue. also processingErr.Error()
is used in line 253 for the same object.
@@ -431,6 +431,7 @@ otherwise no tag is added. {issue}42208[42208] {pull}42403[42403] | |||
- Add metrics for number of events and pages published by HTTPJSON input. {issue}42340[42340] {pull}42442[42442] | |||
- Add `etw` input fallback to attach an already existing session. {pull}42847[42847] | |||
- Update CEL mito extensions to v1.17.0. {pull}42851[42851] | |||
- Add Initial Interval for Microsoft Filesets (ATP, Defender) {pull}42309[42309] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add Initial Interval for Microsoft Filesets (ATP, Defender) {pull}42309[42309] | |
- Add Initial Interval for Microsoft Filesets (ATP, Defender). {pull}42309[42309] |
/test |
Proposed commit message
The initial intervals for microsoft filesets are currently hard coded. Adding initial interval variable.
Checklist
I have commented my code, particularly in hard-to-understand areasI have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Will need to test this with varying initial intervals.