-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4263 from wazuh/3786-location-wildcards
Add localfile wildcard support for windows IT
- Loading branch information
Showing
11 changed files
with
324 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
...ector/test_location/data/configuration_template/configuration_win_location_wildcards.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
- sections: | ||
- section: localfile | ||
elements: | ||
- log_format: | ||
value: syslog | ||
- location: | ||
value: LOCATION | ||
|
||
- section: sca | ||
elements: | ||
- enabled: | ||
value: 'no' | ||
|
||
- section: rootcheck | ||
elements: | ||
- disabled: | ||
value: 'yes' | ||
|
||
- section: syscheck | ||
elements: | ||
- disabled: | ||
value: 'yes' | ||
|
||
- section: wodle | ||
attributes: | ||
- name: syscollector | ||
elements: | ||
- disabled: | ||
value: 'yes' |
47 changes: 47 additions & 0 deletions
47
...gration/test_logcollector/test_location/data/test_cases/cases_win_location_wildcards.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
- name: test_single_asterisk_wildcard | ||
description: Test location tag with one asterisk wildcard | ||
configuration_parameters: | ||
LOCATION: c:\testfol*\subfolder\test | ||
metadata: | ||
matches: true | ||
location: c:\testfol*\subfolder\test | ||
|
||
- name: test_single_question_mark_wildcard | ||
description: Test location tag with one question mark wildcard | ||
configuration_parameters: | ||
LOCATION: c:\testfolde?\subfolder\test | ||
metadata: | ||
location: c:\testfolde?\subfolder\test | ||
matches: true | ||
|
||
- name: test_partial_words_with_asterisk_wildcards | ||
description: Test location tag with words completed using asterisk wildcard | ||
configuration_parameters: | ||
LOCATION: c:\test*\sub*\t* | ||
metadata: | ||
location: c:\test*\sub*\t* | ||
matches: true | ||
|
||
- name: test_mixed_wildcards | ||
description: Test location tag with mixed asterisk and question mark wildcards | ||
configuration_parameters: | ||
LOCATION: c:\testf?lder\*\tes? | ||
metadata: | ||
location: c:\testf?lder\*\tes? | ||
matches: true | ||
|
||
- name: test_mixed_wildcards_path_asterisk_only | ||
description: Test location tag were filepath uses asterisk only | ||
configuration_parameters: | ||
LOCATION: c:\*\*\?es? | ||
metadata: | ||
location: c:\*\*\?es? | ||
matches: true | ||
|
||
- name: test_invalid_wildcards_no_match | ||
description: Test location tag where wildcards do not match a valid file | ||
configuration_parameters: | ||
LOCATION: c:\testfolder\subfolder\tes?.log | ||
metadata: | ||
matches: false | ||
location: c:\testfolder\subfolder\tes?.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.