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

93 lines
4.1 KiB
HTML
Raw Normal View History

2018-03-13 17:22:08 +00:00
<div flex ng-cloak ng-if="!loading && submenuNavItem == 'logs'" class="mozilla-table-size-85" layout="column" ng-controller="managerLogController">
<div layout="row" layout-align="start start" class="wz-padding-right-8 wz-padding-left-16">
2018-04-23 13:05:40 +00:00
<div flex="20" layout="column" class="height-40 wz-margin-top-17 wz-margin-right-15 wz-select-input">
2018-03-08 11:59:39 +00:00
<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-04-23 13:05:40 +00:00
<div flex="20" layout="column" class="height-40 wz-margin-top-17 wz-select-input">
2018-03-08 11:59:39 +00:00
<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
<wz-search-bar isdisabled="realtime" 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,truncatable:'true'},{col:'tag',size:25,truncatable:'true'},{col:'level',size:10,truncatable:'true'},{col:'description',truncatable:'false'}]"
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,truncatable:'true'},{col:'tag',size:25,truncatable:'true'},{col:'level',size:10,truncatable:'true'},{col:'description',truncatable:'false'}]"
ng-if="realtime"
class="no-lateral-padding",
noscroll="true"
nopointer="true"
noheight="true">
</wz-table>
<div layout="row" class="wz-margin-top-10">
<span flex></span>
<a class="small" id="btnDownload" ng-click="downloadCsv()">Formatted <i aria-hidden="true" class="fa fa-download"></i></a>
</div>
2017-10-20 20:37:42 +00:00
</div>
2017-11-21 17:22:49 +00:00
</div>