Skip to content

[Auditbeat] Cherry-pick #9863 to 6.x: Process metricset: Skip permission errors on Windows#9886

Merged
cwurm merged 1 commit intoelastic:6.xfrom
cwurm:backport_9863_6.x
Jan 4, 2019
Merged

[Auditbeat] Cherry-pick #9863 to 6.x: Process metricset: Skip permission errors on Windows#9886
cwurm merged 1 commit intoelastic:6.xfrom
cwurm:backport_9863_6.x

Conversation

@cwurm
Copy link
Copy Markdown
Contributor

@cwurm cwurm commented Jan 4, 2019

Cherry-pick of PR #9863 to 6.x branch. Original message:

The process metricset tests were failing on Windows because they were trying to open processes that cannot be opened (the System and Idle Processes, and any CSRSS process - see OpenProcess).

This change skips the System Process (PID: 0) as well as any process access has been denied to.

Since the process metricset seems to be working well on Windows now, this also adds Windows to the documentation (Note: The system module remains marked as experimental for now).

Fixes #9748.

…stic#9863)

Changes the process metricset to skip the System Process (PID: 0) as well as any process access has been denied to on Windows. Adds Windows to the documentation.

Fixes elastic#9748.

(cherry picked from commit 72b96a7)
@cwurm cwurm changed the title Cherry-pick #9863 to 6.x: [Auditbeat] Process metricset: Skip permission errors on Windows [Auditbeat] Cherry-pick #9863 to 6.x: Process metricset: Skip permission errors on Windows Jan 4, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/secops

Copy link
Copy Markdown
Contributor

@webmat webmat left a comment

Choose a reason for hiding this comment

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

LGTM

CI failures both appear to be Docker flakyness

@cwurm cwurm merged commit eabd6b0 into elastic:6.x Jan 4, 2019
@cwurm cwurm deleted the backport_9863_6.x branch January 4, 2019 16:53
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