Skip to content

Commit

Permalink
Fixing filter in reports (#3173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Cuéllar Peinado authored Apr 29, 2021
1 parent 0b6c1a6 commit 389b961
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ All notable changes to the Wazuh app project will be documented in this file.
### Fixed

- Fix the broken links when using `server.basePath` Kibana setting [#3161](https://github.com/wazuh/wazuh-kibana-app/pull/3161)
- Fixing filter in reports [#3173](https://github.com/wazuh/wazuh-kibana-app/pull/3173)

## Wazuh v4.2.0 - Kibana 7.10.2 , 7.11.2 - Revision 4201

Expand Down
6 changes: 5 additions & 1 deletion server/controllers/wazuh-reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ export class WazuhReportingCtrl {
str += `${
type === 'range'
? `${params.gte}-${params.lt}`
: !!value
: type === 'phrases'
? '(' + params.join(" OR ") + ')'
: type === 'exists'
? '*'
: !!value
? value
: (params || {}).query
}`;
Expand Down

0 comments on commit 389b961

Please sign in to comment.