Skip to content

Commit

Permalink
x-pack/winlogbeat/module/powershell: don't split tokens on hyphen (#2…
Browse files Browse the repository at this point in the history
…8483) (#28982)

(cherry picked from commit f11b9ff)

Co-authored-by: Dan Kortschak <[email protected]>
Co-authored-by: Dan Kortschak <[email protected]>
  • Loading branch information
3 people authored Nov 16, 2021
1 parent 633ac3f commit 6e66d57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Add source.ip validation for event ID 4778 in the Security module. {issue}19627[19627]
- Tolerate faults when Windows Event Log session is interrupted {issue}27947[27947] {pull}28191[28191]
- Add ECS 1.9 new users fields {pull}26509[26509]
- Don't split hyphenated tokens {pull}28483[28483]

*Functionbeat*

Expand Down
8 changes: 8 additions & 0 deletions x-pack/winlogbeat/module/powershell/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@

- name: script_block_text
type: text
analyzer:
winlogbeat_powershell_script_analyzer:
type: pattern
pattern: "[\\W&&[^-]]+"
search_analyzer:
winlogbeat_powershell_script_analyzer:
type: pattern
pattern: "[\\W&&[^-]]+"
description: >
Text of the executed script block.
example: ".\\a_script.ps1"
Expand Down
2 changes: 1 addition & 1 deletion x-pack/winlogbeat/module/powershell/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e66d57

Please sign in to comment.