Adapt for 7.6.1

This commit is contained in:
JuanCarlos 2020-03-05 16:54:56 +01:00
parent dec7f61f5d
commit 5bf29657b7
No known key found for this signature in database
GPG Key ID: B1C4FB733616273A
4 changed files with 38 additions and 9 deletions

View File

@ -2,6 +2,14 @@
All notable changes to the Wazuh app project will be documented in this file.
## Wazuh v3.11.4 - Kibana v7.6.1 - Revision 858
### Added
- Support for Kibana v7.6.1
## Wazuh v3.11.4 - Kibana v6.8.6, v7.4.2, v7.6.0 - Revision 857
### Added

View File

@ -32,8 +32,8 @@ Visualize and analyze Wazuh alerts stored in Elasticsearch using our Kibana app
- Wazuh HIDS 3.12.0
- Wazuh RESTful API 3.12.0
- Kibana 7.6.0
- Elasticsearch 7.6.0
- Kibana 7.6.1
- Elasticsearch 7.6.1
## Installation
@ -41,7 +41,7 @@ Install the app
```
cd /usr/share/kibana
sudo -u kibana bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.12.0_7.6.0.zip
sudo -u kibana bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.12.0_7.6.1.zip
```
Restart Kibana
@ -106,8 +106,21 @@ chown -R kibana:kibana /usr/share/kibana/plugins
Install the app
```
cd /usr/share/kibana
sudo -u kibana bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.12.0_7.6.0.zip
cd /usr/share/kibana/
sudo -u kibana bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.12.0_7.6.1.zip
```
Restore the configuration file backup.
```
sudo cp /tmp/wazuh-backup.yml /usr/share/kibana/plugins/wazuh/wazuh.yml
```
Update configuration file permissions.
```
sudo chown kibana:kibana /usr/share/kibana/plugins/wazuh/wazuh.yml
sudo chmod 600 /usr/share/kibana/plugins/wazuh/wazuh.yml
```
Restart Kibana
@ -129,6 +142,7 @@ service kibana restart
| Wazuh app version | Kibana version | Package |
| :---------------: | :------------: | :-------------------------------------------------------------- |
| 3.11.4 | 7.6.1 | <https://packages.wazuh.com/wazuhapp/wazuhapp-3.11.4_7.6.1.zip> |
| 3.11.4 | 7.6.0 | <https://packages.wazuh.com/wazuhapp/wazuhapp-3.11.4_7.6.0.zip> |
| 3.11.4 | 7.4.2 | <https://packages.wazuh.com/wazuhapp/wazuhapp-3.11.4_7.4.2.zip> |
| 3.11.4 | 6.8.6 | <https://packages.wazuh.com/wazuhapp/wazuhapp-3.11.4_6.8.6.zip> |

View File

@ -1,10 +1,10 @@
{
"name": "wazuh",
"version": "3.12.0",
"revision": "0590",
"code": "0590-0",
"revision": "0870",
"code": "0870-0",
"kibana": {
"version": "7.6.0"
"version": "7.6.1"
},
"description": "Wazuh app",
"main": "index.js",

View File

@ -647,7 +647,13 @@ function discoverController(
if (!filtersAreReady()) return;
timefilter.setTime(dateRange);
if (query && typeof query === 'object') $state.query = query;
if (query && typeof query === 'object') {
/// Wazuh 7.6.1
if ($scope.tabView !== 'discover')
query.update_Id = new Date().getTime().toString();
///
$state.query = query;
}
// Update query from search bar
discoverPendingUpdates.removeAll();
discoverPendingUpdates.addItem($state.query, filterManager.filters);
@ -1124,6 +1130,7 @@ function discoverController(
$scope.$applyAsync();
$scope.tabView = parameters.tabView || 'panels';
$scope.tab = parameters.tab;
delete (($state || {}).query || {}).update_Id;
evt.stopPropagation();
if ($scope.tabView === 'discover') {
$scope.rows = false;