Skip to content

[Auditbeat] Cherry-pick #9863 to 6.6: Process metricset: Skip permission errors on Windows#9887

Merged
cwurm merged 1 commit intoelastic:6.6from
cwurm:backport_9863_6.6
Jan 4, 2019
Merged

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

Conversation

@cwurm
Copy link
Copy Markdown
Contributor

@cwurm cwurm commented Jan 4, 2019

Cherry-pick of PR #9863 to 6.6 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.6: [Auditbeat] Process metricset: Skip permission errors on Windows [Auditbeat] Cherry-pick #9863 to 6.6: Process metricset: Skip permission errors on Windows Jan 4, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/secops

@cwurm cwurm merged commit 4f414d4 into elastic:6.6 Jan 4, 2019
@cwurm cwurm deleted the backport_9863_6.6 branch January 4, 2019 16:53
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…stic#9863) (elastic#9887)

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 e42ffec)
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