wazuh-kibana-app/public/templates/manager/manager-osseclog.html

88 lines
3.7 KiB
HTML
Raw Normal View History

2018-03-08 11:59:39 +00:00
<div flex ng-cloak ng-if="!loading && submenuNavItem == 'logs'" layout="column" ng-controller="managerLogController">
2018-03-08 11:59:39 +00:00
<div layout="row" layout-align="start start" class="manager-log-top-row wz-padding-left-16">
<div flex="20" layout="column" class="height-41 md-block md-whiteframe-z1 md-input-margin wz-margin-top-17 wz-margin-right-15 wz-select-input">
<select flex class="kuiSelect wz-border-none cursor-pointer" ng-disabled="realtime" id="categoryBox" ng-model="category" ng-change="category == 'all' ? logs.removeFilter('category', true) : logs.addFilter('category', category)"
aria-label="Logs category">
<option value="all">Choose daemon</option>
<option ng-repeat="(key, value) in summary" value="{{key}}">{{key}}</option>
</select>
</div>
2016-09-20 08:55:43 +00:00
2018-03-08 11:59:39 +00:00
<div flex="20" layout="column" class="height-41 md-block md-whiteframe-z1 md-input-margin wz-margin-top-17 wz-margin-right-15 wz-select-input">
<select flex class="kuiSelect wz-border-none cursor-pointer" 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)"
aria-label="Logs level">
<option value="all">Choose log level</option>
<option value="info">Info</option>
<option value="error">Error</option>
<option value="warning">Warning</option>
</select>
</div>
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
<div flex layout="column" class="md-padding no-padding-top">
2018-01-23 12:10:43 +00:00
<!-- Standard -->
<wz-table-header
2018-02-20 11:36:06 +00:00
layout="row"
data="logs"
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 -->
<wz-table-header
2018-02-20 11:36:06 +00:00
layout="row"
data="realLogs"
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"
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'}]"
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"
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'}]"
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>