Fix Agents preview searchfilter. Updated mapping/templates. Background color at preview

This commit is contained in:
Pedro Sanchez 2017-02-16 08:53:19 -08:00
parent 9c457a1658
commit 998b11635f
5 changed files with 16 additions and 4 deletions

View File

@ -194,6 +194,7 @@ app.controller('agentsController', function ($scope, $q, DataFactory, $mdToast,
if(angular.isUndefined($location.search().tab) && angular.isUndefined($location.search().id)){
$scope.submenuNavItem = "preview";
delete $scope._agent;
$scope.search = "";
}
});

View File

@ -47,7 +47,17 @@
</md-card>
</div>
<div layout="row" layout-align="start stretch" flex style="margin-bottom: 7px">
<div layout="row" layout-align="start stretch" flex>
<md-card flex layout="column" style="margin: 8px 0 0 0">
<md-card-content style="text-align: center;">
<kbn-searchbar style="display: none"></kbn-searchbar>
<kbn-vis vis-timefilter="24h" 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:(customLabel:Alerts),schema:metric,type:count),(enabled:!t,id:'3',params:(field:agent.name,order:desc,orderBy:'1',size:5),schema:group,type:terms),(enabled:!t,id:'2',params:(customInterval:'2h',extended_bounds:(),field:'@timestamp',interval:auto,min_doc_count:1),schema:segment,type:date_histogram)),listeners:(),params:(addLegend:!t,addTimeMarker:!f,addTooltip:!t,defaultYExtents:!f,interpolate:cardinal,legendPosition:right,mode:overlap,scale:linear,setYExtents:!f,times:!()),title:'New%20Visualization',type:area))"
vis-filter="*">
</kbn-vis>
</md-card-content>
</md-card>
</div>
<div layout="row" layout-align="start stretch" flex>
<div layout="row" class="sideNavBox" flex="80">

View File

@ -15,7 +15,7 @@
<md-progress-linear class="md-accent" md-mode="indeterminate" ng-show="load"></md-progress-linear>
<div flex layout="row" style="height: 100%;">
<div flex layout="row" style="height: 100%; {{(tabView != 'discover') ? 'background-color: #e4e4e4' : ''}}" >
<md-content flex id="content" style="height: 100%;">
<md-content layout="row" layout-align="space-between start" style="background-color: #f7f7f7">
<md-toolbar style="height: 50px;">

File diff suppressed because one or more lines are too long

View File

@ -263,7 +263,8 @@
"doc_values": "true"
},
"id": {
"type": "long",
"type": "string",
"index": "not_analyzed",
"doc_values": "true"
},
"cve": {