2018-03-06 22:35:42 +00:00
|
|
|
<div flex ng-cloak ng-if="!loading && submenuNavItem == 'logs'" layout="column" ng-controller="managerLogController" class="background-white">
|
2017-11-23 10:22:27 +00:00
|
|
|
|
2017-11-21 17:22:49 +00:00
|
|
|
<div layout="row" layout-align="start start" class="manager-log-top-row">
|
|
|
|
<md-input-container class="md-whiteframe-z1 manager-log-input-1" flex="20">
|
2018-02-14 15:43:55 +00:00
|
|
|
<md-select ng-disabled="realtime" id="categoryBox" ng-model="category" ng-change="category == 'all' ? logs.removeFilter('category', true) : logs.addFilter('category', category)"
|
2017-11-06 10:11:01 +00:00
|
|
|
aria-label="Logs category">
|
|
|
|
<md-option selected value="all">Choose daemon</md-option>
|
|
|
|
<md-option ng-repeat="(key, value) in summary" value="{{key}}">{{key}}</md-option>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2016-09-20 08:55:43 +00:00
|
|
|
|
2017-11-21 17:22:49 +00:00
|
|
|
<md-input-container class="md-whiteframe-z1 manager-log-input-2" flex="20">
|
2018-03-06 17:12:47 +00:00
|
|
|
<md-select class="wz-border-none" ng-disabled="realtime" id="levelBox" ng-model="type_log" ng-change="type_log == 'all' ? logs.removeFilter('type_log', true) : logs.addFilter('type_log', type_log)"
|
2017-11-06 10:11:01 +00:00
|
|
|
aria-label="Logs level">
|
|
|
|
<md-option selected value="all">Choose log level</md-option>
|
|
|
|
<md-option value="info">Info</md-option>
|
|
|
|
<md-option value="error">Error</md-option>
|
|
|
|
<md-option value="warning">Warning</md-option>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2017-11-21 17:22:49 +00:00
|
|
|
<span flex></span>
|
2018-02-20 11:36:06 +00:00
|
|
|
<md-button ng-if="!realtime" class="wazuh-button md-raised md-primary manager-log-buttonplay" ng-click="playRealtime()" aria-label="Play realtime button">
|
|
|
|
<i class="fa fa-play fa-fw" aria-hidden="true"></i>
|
2017-11-21 17:22:49 +00:00
|
|
|
Play realtime
|
|
|
|
</md-button>
|
2018-02-20 11:36:06 +00:00
|
|
|
<md-button ng-if="realtime" class="wazuh-button md-raised md-primary manager-log-buttonplay" ng-click="stopRealtime()" aria-label="Stop realtime button">
|
|
|
|
<i class="fa fa-stop fa-fw" aria-hidden="true"></i>
|
2017-11-21 17:22:49 +00:00
|
|
|
Stop realtime
|
|
|
|
</md-button>
|
|
|
|
</div>
|
2018-02-20 11:36:06 +00:00
|
|
|
|
2018-03-07 16:24:29 +00:00
|
|
|
<wz-search-bar class="wz-lateral-padding-16" data="logs" term="searchTerm" placetext="'Filter logs...'"></wz-search-bar>
|
2017-10-20 20:37:42 +00:00
|
|
|
|
2018-03-05 16:04:41 +00:00
|
|
|
<div flex layout="column" class="md-padding no-padding-top">
|
2017-11-20 11:13:37 +00:00
|
|
|
|
2018-01-23 12:10:43 +00:00
|
|
|
<!-- Standard -->
|
2018-02-14 15:43:55 +00:00
|
|
|
<wz-table-header
|
2018-02-20 11:36:06 +00:00
|
|
|
layout="row"
|
|
|
|
data="logs"
|
2018-02-14 15:43:55 +00:00
|
|
|
keys="[
|
|
|
|
{name:'Timestamp',sortValue:'timestamp',size:15},
|
|
|
|
{name:'Tag',sortValue:'tag',size:25},
|
|
|
|
{name:'Level',sortValue:'level',size:10},
|
|
|
|
{name:'Description'}
|
|
|
|
]"
|
|
|
|
ng-if="!realtime">
|
|
|
|
</wz-table-header>
|
2017-10-20 20:37:42 +00:00
|
|
|
|
2018-01-23 12:10:43 +00:00
|
|
|
<!-- Realtime -->
|
2018-02-14 15:43:55 +00:00
|
|
|
<wz-table-header
|
2018-02-20 11:36:06 +00:00
|
|
|
layout="row"
|
|
|
|
data="realLogs"
|
2018-02-14 15:43:55 +00:00
|
|
|
keys="[
|
|
|
|
{name:'Timestamp',size:15},
|
|
|
|
{name:'Tag',size:25},
|
|
|
|
{name:'Level',size:10},
|
|
|
|
{name:'Description'}
|
|
|
|
]"
|
|
|
|
ng-if="realtime">
|
|
|
|
</wz-table-header>
|
2018-01-23 12:10:43 +00:00
|
|
|
|
|
|
|
<!-- Standard -->
|
2018-02-20 11:36:06 +00:00
|
|
|
<wz-table
|
|
|
|
layout="column"
|
2018-02-14 15:43:55 +00:00
|
|
|
flex
|
2018-02-20 11:36:06 +00:00
|
|
|
data="logs"
|
|
|
|
keys="[{col:'timestamp',size:15},{col:'tag',size:25},{col:'level',size:10},{col:'description'}]"
|
2018-02-14 15:43:55 +00:00
|
|
|
ng-if="!realtime"
|
|
|
|
class="no-lateral-padding"
|
|
|
|
nopointer="true"
|
|
|
|
noheight="true">
|
|
|
|
</wz-table>
|
2018-01-23 12:10:43 +00:00
|
|
|
|
|
|
|
<!-- Realtime -->
|
2018-02-20 11:36:06 +00:00
|
|
|
<wz-table
|
|
|
|
layout="column"
|
2018-02-14 15:43:55 +00:00
|
|
|
flex
|
2018-02-20 11:36:06 +00:00
|
|
|
data="realLogs"
|
|
|
|
keys="[{col:'timestamp',size:15},{col:'tag',size:25},{col:'level',size:10},{col:'description'}]"
|
2018-02-14 15:43:55 +00:00
|
|
|
ng-if="realtime"
|
|
|
|
class="no-lateral-padding",
|
|
|
|
noscroll="true"
|
|
|
|
nopointer="true"
|
|
|
|
noheight="true">
|
|
|
|
</wz-table>
|
2017-10-20 20:37:42 +00:00
|
|
|
</div>
|
2017-11-21 17:22:49 +00:00
|
|
|
</div>
|