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

Restrict permissible regex for instance name in perfmon #14666

Merged
merged 4 commits into from
Nov 25, 2019

Conversation

narph
Copy link
Contributor

@narph narph commented Nov 20, 2019

Should fix #14273.

Previous regular expression will pick up the string in the last parentheses. We restricted this to the first set instead.
Added tests for the regular expressions.

@narph narph requested a review from a team as a code owner November 20, 2019 19:01
@narph narph self-assigned this Nov 20, 2019
@narph narph added [zube]: In Progress Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Nov 20, 2019
@narph narph requested a review from jsoriano November 21, 2019 14:25
@narph narph merged commit 6280f83 into elastic:master Nov 25, 2019
@narph narph deleted the perfmon-regex-fix branch November 25, 2019 10:03
@narph narph added the needs_backport PR is waiting to be backported to other branches. label Jan 10, 2020
narph added a commit to narph/beats that referenced this pull request Jan 10, 2020
* modify regex

* Added pr id

* refactor unittest

(cherry picked from commit 6280f83)
narph added a commit to narph/beats that referenced this pull request Jan 10, 2020
* modify regex

* Added pr id

* refactor unittest

(cherry picked from commit 6280f83)
narph added a commit that referenced this pull request Jan 10, 2020
…me in perfmon (#15466)

* Restrict permissible regex for instance name in perfmon  (#14666)

* modify regex

* Added pr id

* refactor unittest

(cherry picked from commit 6280f83)

* Fix changelog
narph added a commit that referenced this pull request Jan 10, 2020
…me in perfmon (#15464)

* Restrict permissible regex for instance name in perfmon  (#14666)

* modify regex

* Added pr id

* refactor unittest

(cherry picked from commit 6280f83)

* Fix changelog
@narph narph removed the needs_backport PR is waiting to be backported to other branches. label Jan 15, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…ance name in perfmon (elastic#15466)

* Restrict permissible regex for instance name in perfmon  (elastic#14666)

* modify regex

* Added pr id

* refactor unittest

(cherry picked from commit d1463bc)

* Fix changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metricbeat Metricbeat Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Metricbeat] Windows perfmon wildcard queries with multiple brackets show wrong instance name
4 participants