Merge branch '3.0' into using-default-filters-106

This commit is contained in:
Manuel Albarral 2017-09-18 09:15:02 +02:00 committed by GitHub
commit 8bc0a33b13
20 changed files with 129 additions and 88 deletions

View File

@ -104,7 +104,7 @@ app.controller('agentsController', function ($scope, $q, DataFactory, Notifier,
fields = {"fields" : [{"field": "agent.id", "value": agent_id}]};
var clusterName = {"cluster" : $scope.cluster_info.cluster};
var timeInterval = {"timeinterval": {"gte" : $scope.timeGTE, "lt": $scope.timeLT}};
console.log(payload);
angular.extend(payload, fields, clusterName, timeInterval);
var deferred = $q.defer();

View File

@ -91,10 +91,15 @@ var app = require('ui/modules').get('app/wazuh', [])
require('ui/modules').get('app/wazuh', []).controller('discoverW', function($scope, config, courier, $route, $window, Notifier,
AppState, timefilter, Promise, Private, kbnUrl, $location, savedSearches, appState, $rootScope, getAppState) {
$scope.cluster_info = appState.getClusterInfo();
$scope.agent_info = $rootScope.agent;
$scope.cluster_filter = "cluster.name: " + $scope.cluster_info.cluster;
if($rootScope.page == "agents" && $location.path() != "/discover/"){
$scope.agent_info = $rootScope.agent;
$scope.agent_filter = "agent.id: " + $route.current.params.id;
$scope.global_filter = $scope.cluster_filter + " AND " + $scope.agent_filter;
}else
$scope.global_filter = $scope.cluster_filter;
if(!angular.isUndefined($scope.disFilter))
$scope.global_filter = $scope.disFilter + " AND " + $scope.global_filter;
@ -185,8 +190,11 @@ require('ui/modules').get('app/wazuh', []).controller('discoverW', function($sco
// the actual courier.SearchSource
$scope.searchSource = savedSearch.searchSource;
$scope.indexPattern = resolveIndexPatternLoading();
$scope.searchSource.set('index', $scope.indexPattern);
$scope.searchSource
.set('index', $scope.indexPattern)
.highlightAll(true)
.version(true);
if (savedSearch.id) {
@ -519,14 +527,11 @@ require('ui/modules').get('app/wazuh', []).controller('discoverW', function($sco
};
$scope.updateDataSource = Promise.method(function updateDataSource() {
$scope.searchSource
.size($scope.opts.sampleSize)
.sort(getSort($state.sort, $scope.indexPattern))
.query(!$scope.stateQuery ? null : $scope.stateQuery)
.set('filter', queryFilter.getFilters())
.highlightAll(true);
.query(!$state.query ? null : $state.query)
.set('filter', queryFilter.getFilters());
});
// TODO: On array fields, negating does not negate the combination, rather all terms
@ -597,7 +602,7 @@ require('ui/modules').get('app/wazuh', []).controller('discoverW', function($sco
timefilter.time.to = moment(e.point.x + e.data.ordered.interval);
timefilter.time.mode = 'absolute';
},
brush: brushEvent($state)
brush: brushEvent($scope.state)
},
aggs: visStateAggs
});

View File

@ -24,12 +24,10 @@ var app = require('ui/modules').get('app/wazuh', [])
require('ui/modules').get('app/wazuh', []).controller('kibanaSearchBar', function (genericReq, $compile, $scope, $route, timefilter, AppState, appState, $location, kbnUrl, $timeout, courier, Private, Promise, savedVisualizations, SavedVis, getAppState, Notifier, $rootScope) {
$scope.stateQuery = $scope.disFilter;
$route.reloadOnSearch = true;
timefilter.enabled = true;
$scope.stateQuery = "*";
// Set default time
var gParameter;
if($route.current.params._g){
@ -48,7 +46,6 @@ require('ui/modules').get('app/wazuh', []).controller('kibanaSearchBar', functio
}
$scope.timefilter = timefilter;
let $state = $scope.$state = (function initState() {
$state = new AppState();
return $state;
@ -57,13 +54,12 @@ require('ui/modules').get('app/wazuh', []).controller('kibanaSearchBar', functio
// Fetch / reload visualization
$scope.fetch = function ()
{
$scope.stateQuery.query_string.query="(" + $scope.stateQuery.query_string.query + ")";
$rootScope.$broadcast('updateQuery',$scope.stateQuery);
this.stateQuery = this.stateQuery == "" ? "*" : this.stateQuery;
$rootScope.$broadcast('updateQuery',"(" + this.stateQuery + ")");
};
$scope.queryFilter = Private(FilterBarQueryFilterProvider);
// Watch visCounter, wait for finish and fetch.
var visCounterWatch = $rootScope.$watch('visCounter', function (data) {

View File

@ -167,7 +167,6 @@ require('ui/modules').get('app/wazuh', []).controller('VisController', function
// Fetch visualization
$scope.fetch = function ()
{
if($scope.visIndexPattern == "wazuh-alerts-*"){
$scope.searchSource.set('filter', $scope.queryFilter.getFilters());
$scope.searchSource.set('query', $scope.filter.current);
@ -195,7 +194,7 @@ require('ui/modules').get('app/wazuh', []).controller('VisController', function
// Listen for query changes
var updateQueryWatch = $rootScope.$on('updateQuery', function (event, query) {
if(query !== "undefined" && !$scope.not_aggregable){
$scope.filter.current.query_string.query = $scope.filter.raw+" AND "+query.query_string.query;
$scope.filter.current = $scope.filter.raw+" AND "+query;
$scope.fetch();
}
});

View File

@ -3,6 +3,28 @@ body{
width:100%;
}
.kuiLocalNavRow {
z-index:9999 !important;
}
kbn-searchbar .kuiLocalNav {
margin-bottom: 0;
}
.kuiLocalNav {
min-height: 0 !important;
margin-bottom: -16px;
}
.kuiLocalNavRow--secondary {
display: none !important;
}
.typeahead {
padding: 4px 10px 0 !important;
background-color: #e4e4e4 !important;
}
@-webkit-keyframes uil-ring-anim {
0% {
-webkit-transform: rotate(0deg);
@ -176,7 +198,7 @@ kbn-vis-value div{
.wazuh-discover-searchbar{
margin-top: -60px !important;
z-index:9999;
z-index:9998 !important;
}
.wazuh-discover-searchbar h1{

View File

@ -1,7 +1,7 @@
<md-content ng-if="submenuNavItem == 'audit' && _agent" id="agents-audit" ng-controller="auditController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(15)'><div></div></div>
<!-- No results message -->
<md-content flex layout="row" layout-align="start start" ng-show="!results && !loading" ng-if="tabView == 'panels' && hideRing(15)">
@ -14,7 +14,7 @@
<!-- View: Discover -->
<md-content ng-if="agentInfo.name" style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover'" >
<md-content style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover' && agentInfo.name" >
<kbn-disfull table-height="1000px;" dis-a="(columns:!(_source),filters:!(),index:'wazuh-alerts-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))"
dis-filter="rule.groups:audit"
infinite-scroll="true">

View File

@ -1,7 +1,7 @@
<md-content ng-if="submenuNavItem == 'fim' && _agent" id="agents-fim" ng-controller="fimController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(8)'><div></div></div>
<!-- No results message -->
@ -14,7 +14,7 @@
</md-content>
<!-- View: Discover -->
<md-content ng-if="agentInfo.name" style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="$parent.tabView == 'discover'" >
<md-content style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="$parent.tabView == 'discover' && agentInfo.name">
<kbn-disfull table-height="1000px;" dis-a="(columns:!(_source),filters:!(),index:'wazuh-alerts-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))"
dis-filter="rule.groups:syscheck "
infinite-scroll="true">
@ -80,7 +80,7 @@
</md-card-title>
<md-card-content>
<kbn-vis vis-height="154px" vis-index-pattern="wazuh-alerts-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(field:syscheck.path,order:desc,orderBy:'1',size:5),schema:segment,type:terms)),listeners:(),params:(addLegend:!t,addTooltip:!t,isDonut:!f,shareYAxis:!t),title:'New%20Visualization',type:pie))"
vis-filter="rule.id: 554 NOT location: syscheck-registry">
vis-filter="rule.id: 554 AND NOT location: syscheck-registry">
</kbn-vis>
</md-card-content>
</md-card>
@ -93,7 +93,7 @@
</md-card-title>
<md-card-content>
<kbn-vis vis-height="154px" vis-index-pattern="wazuh-alerts-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(field:syscheck.path,order:desc,orderBy:'1',size:5),schema:segment,type:terms)),listeners:(),params:(addLegend:!t,addTooltip:!t,isDonut:!f,shareYAxis:!t),title:'FIM%20Top%2010%20Changed',type:pie))"
vis-filter="(rule.id: 550 OR rule.id: 551 OR rule.id: 552 OR rule.id: 555) NOT location: syscheck-registry">
vis-filter="(rule.id: 550 OR rule.id: 551 OR rule.id: 552 OR rule.id: 555) AND NOT location: syscheck-registry">
</kbn-vis>
</md-card-content>
</md-card>
@ -106,7 +106,7 @@
</md-card-title>
<md-card-content>
<kbn-vis vis-height="154px" vis-index-pattern="wazuh-alerts-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(field:syscheck.path,order:desc,orderBy:'1',size:5),schema:segment,type:terms)),listeners:(),params:(addLegend:!t,addTooltip:!t,isDonut:!f,shareYAxis:!t),title:'New%20Visualization',type:pie))"
vis-filter="rule.id: 553 NOT location: syscheck-registry">
vis-filter="rule.id: 553 AND NOT location: syscheck-registry">
</kbn-vis>
</md-card-content>
</md-card>

View File

@ -1,7 +1,7 @@
<md-content ng-if="submenuNavItem == 'oscap' && _agent" id="agents-oscap" ng-controller="oscapController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(13)'><div></div></div>
<!-- No results message -->
@ -15,7 +15,7 @@
<!-- View: Discover -->
<md-content ng-if="agentInfo.name" style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover'" >
<md-content style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover' && agentInfo.name">
<kbn-disfull table-height="1000px;" dis-a="(columns:!(_source),filters:!(),index:'wazuh-alerts-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))"
dis-filter="rule.groups:oscap"
infinite-scroll="true">

View File

@ -1,7 +1,7 @@
<md-content ng-if="submenuNavItem == 'overview' && agentInfo" ng-controller="agentsOverviewController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(7)'><div></div></div>
<div ng-show='hideRing(7) && results && !loading' ng-if="tabView == 'panels'">
<md-content class="no-legend" layout="row">
@ -80,7 +80,7 @@
</md-content>
<!-- View: Discover -->
<md-content ng-if="agentInfo.name" style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover'" >
<md-content style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover' && agentInfo.name" >
<kbn-disfull table-height="1000px;" dis-a="(columns:!(_source),filters:!(),index:'wazuh-alerts-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))"
infinite-scroll="true">
</kbn-disfull>

View File

@ -1,7 +1,7 @@
<md-content ng-if="submenuNavItem == 'pci' && _agent" id="agents-pci" ng-controller="PCIController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(3)'><div></div></div>
<!-- No results message -->
@ -15,7 +15,7 @@
<!-- View: Discover -->
<md-content ng-if="agentInfo.name" style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover'" >
<md-content style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover' && agentInfo.name">
<kbn-disfull table-height="1000px;" dis-a="(columns:!(_source),filters:!(),index:'wazuh-alerts-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))"
dis-filter="_exists_:rule.pci_dss "
infinite-scroll="true">

View File

@ -1,7 +1,7 @@
<md-content ng-if="submenuNavItem == 'policy_monitoring' && _agent" id="agents-pm" ng-controller="pmController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(4)'><div></div></div>
<!-- No results message -->
@ -15,7 +15,7 @@
<!-- View: Discover -->
<md-content ng-if="agentInfo.name" style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover'" >
<md-content style="background-color: white" flex layout="column" layout-align="start space-around" ng-show="tabView == 'discover' && agentInfo.name" >
<kbn-disfull table-height="1000px;" dis-a="(columns:!(_source),filters:!(),index:'wazuh-alerts-*',interval:auto,query:(query_string:(analyze_wildcard:!t,query:'*')),sort:!('@timestamp',desc))"
dis-filter="rule.groups:rootcheck"
infinite-scroll="true">

View File

@ -1,10 +1,10 @@
<div ng-controller="discoverW" class="app-container">
<kbn-top-nav name="discover" config="topNavMenu">
<!-- Transcluded elements. -->
</kbn-top-nav>
<div data-transclude-slots class="wazuh-discover-searchbar">
<!-- Transcluded elements. -->
<div data-transclude-slots>
<!-- Breadcrumbs. -->
<div data-transclude-slot="topLeftCorner" class="kuiLocalBreadcrumbs">
<h1 tabindex="0" id="kui_local_breadcrumb" class="kuiLocalBreadcrumb">
@ -18,21 +18,21 @@
</div>
<!-- Search. -->
<navbar name="discover-search">
<form
data-transclude-slot="bottomRow"
class="fullWidth"
role="form"
name="discoverSearch"
ng-submit="fetch()"
>
<div class="typeahead" kbn-typeahead="discover" on-select="">
<div class="typeahead" kbn-typeahead="discover" on-select="fetch()">
<div class="kuiLocalSearch">
<div class="kuiLocalSearchAssistedInput">
<input
parse-query
input-focus
kbn-typeahead-input
ng-model="stateQuery"
ng-model="state.query"
placeholder="Search... (e.g. status:200 AND extension:PHP)"
aria-label="Search input"
type="text"
@ -63,10 +63,7 @@
<kbn-typeahead-items></kbn-typeahead-items>
</div>
</form>
</navbar>
</div>
<div class="container-fluid" role="main">
<div class="row">
<filter-bar

View File

@ -1,33 +1,55 @@
<div ng-controller="kibanaSearchBar">
<kbn-top-nav name="searchbar" config="topNavMenu">
<div class="kibana-nav-info"></div>
</kbn-top-nav>
<navbar name="discover-search">
<form role="form" class="fill inline-form" ng-submit="fetch()" name="discoverSearch">
<div class="typeahead" kbn-typeahead="discover" on-select="">
<div class="input-group"
ng-class="discoverSearch.$invalid ? 'has-error' : ''">
<kbn-top-nav name="discover" config="topNavMenu">
<!-- Transcluded elements. -->
</kbn-top-nav>
<div data-transclude-slots>
<!-- Search. -->
<form
data-transclude-slot="bottomRow"
class="fullWidth"
role="form"
name="discoverSearch"
ng-submit="fetch()"
>
<div class="typeahead" kbn-typeahead="discover" on-select="fetch()">
<div class="kuiLocalSearch">
<div class="kuiLocalSearchAssistedInput">
<input
parse-query
input-focus
kbn-typeahead-input
ng-model="stateQuery"
placeholder="Search..."
placeholder="Search... (e.g. status:200 AND extension:PHP)"
aria-label="Search input"
type="text"
class="form-control">
<button type="submit"
class="kuiLocalSearchInput kuiLocalSearchInput--lucene"
ng-class="{'kuiLocalSearchInput-isInvalid': discoverSearch.$invalid}"
>
<div class="kuiLocalSearchAssistedInput__assistance">
<p class="kuiText">
<a
class="kuiLink"
ng-href="{{queryDocLinks.luceneQuerySyntax}}"
target="_blank"
>
Uses lucene query syntax
</a>
</p>
</div>
</div>
<button
type="submit"
aria-label="Search"
class="kuiLocalSearchButton"
ng-disabled="discoverSearch.$invalid"
aria-label="Search">
<span aria-hidden="true" class="fa fa-search"></span></button>
>
<span class="kuiIcon fa-search" aria-hidden="true"></span>
</button>
</div>
<kbn-typeahead-items></kbn-typeahead-items>
</div>
</form>
<div class="button-group" role="toolbar"></div>
</navbar>
</div>
<filter-bar state="$state" class="mainSearchBar"></filter-bar>
<div layout="row" layout-align="center stretch" id="pciRequirementBox" style="display: none;">

View File

@ -1,7 +1,7 @@
<md-content flex layout="column" ng-if="submenuNavItem == 'audit'" ng-controller="overviewAuditController" layout-align="space-around">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(16)'><div></div></div>
<!-- No results message -->

View File

@ -1,7 +1,7 @@
<md-content flex layout="column" ng-if="submenuNavItem == 'fim'" ng-controller="overviewFimController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(17)'><div></div></div>
<!-- No results message -->

View File

@ -1,7 +1,7 @@
<md-content flex layout="column" ng-if="submenuNavItem == 'general'" ng-controller="overviewGeneralController" layout-align="start">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(15)'><div></div></div>
<!-- No results message -->

View File

@ -1,7 +1,7 @@
<md-content flex layout="column" ng-if="submenuNavItem == 'oscap'" ng-controller="overviewOSCAPController" layout-align="start">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(14)'><div></div></div>
<!-- No results message -->

View File

@ -1,7 +1,7 @@
<md-content flex layout="column" ng-if="submenuNavItem == 'pci'" ng-controller="overviewPCIController" layout-align="start">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(5)'><div></div></div>
<!-- No results message -->

View File

@ -1,7 +1,7 @@
<md-content flex layout="column" ng-if="submenuNavItem == 'pm'" ng-controller="overviewPMController">
<!-- Kibana search bar -->
<kbn-searchbar class="wazuh-searchbar" ng-if="tabView == 'panels'"></kbn-searchbar>
<kbn-searchbar ng-if="tabView == 'panels'"></kbn-searchbar>
<div class='uil-ring-css' ng-if="tabView == 'panels'" ng-show='!hideRing(5)'><div></div></div>
<!-- No results message -->
@ -75,7 +75,7 @@
</md-card-title-text>
</md-card-title>
<md-card-content>
<kbn-vis vis-height="460px" vis-index-pattern="wazuh-alerts-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(vis:(params:(sort:(columnIndex:3,direction:desc)))),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(customLabel:'Agent name',field:agent.name,order:desc,orderBy:'1',size:999999999),schema:bucket,type:terms),(enabled:!t,id:'3',params:(customLabel:'Rule description',field:rule.description,order:desc,orderBy:'1',size:999999999),schema:bucket,type:terms),(enabled:!t,id:'4',params:(customLabel:Control,field:title,order:desc,orderBy:'1',size:999999999),schema:bucket,type:terms)),listeners:(),params:(perPage:10,showMeticsAtAllLevels:!f,showPartialRows:!f,showTotal:!f,sort:(columnIndex:!n,direction:!n),totalFunc:sum),title:'New%20Visualization',type:table))"
<kbn-vis vis-height="460px" vis-index-pattern="wazuh-alerts-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(vis:(params:(sort:(columnIndex:3,direction:desc)))),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(customLabel:'Agent name',field:agent.name,order:desc,orderBy:'1',size:999999999),schema:bucket,type:terms),(enabled:!t,id:'3',params:(customLabel:'Rule description',field:rule.description,order:desc,orderBy:'1',size:999999999),schema:bucket,type:terms),(enabled:!t,id:'4',params:(customLabel:Control,field:data.title,order:desc,orderBy:'1',size:999999999),schema:bucket,type:terms)),listeners:(),params:(perPage:10,showMeticsAtAllLevels:!f,showPartialRows:!f,showTotal:!f,sort:(columnIndex:!n,direction:!n),totalFunc:sum),title:'New%20Visualization',type:table))"
vis-filter='rule.groups:"rootcheck"'>
</kbn-vis>
</md-card-content>

View File

@ -52,7 +52,7 @@ module.exports = function (server, options) {
};
var getAPI_entries = function (req,reply) {
elasticRequest.callWithRequest(req, 'search', { index: '.wazuh', type: 'wazuh-configuration'}).then(
elasticRequest.callWithRequest(req, 'search', { index: '.wazuh', type: 'wazuh-configuration', size: '100'}).then(
function (data) {
reply(data.hits.hits);
}, function (data, error) {