2018-08-22 12:23:45 +00:00
|
|
|
<div layout="column" class="mozilla-table-size-85" ng-controller="managerLogController" ng-if="!loading && tab == 'logs'">
|
2018-07-02 12:54:33 +00:00
|
|
|
|
|
|
|
<!-- Headline -->
|
|
|
|
<div ng-show="!loading" layout="column" layout-padding>
|
|
|
|
<span class="font-size-18"><i class="fa fa-fw fa-pencil-square-o" aria-hidden="true"></i> Logs</span>
|
|
|
|
<span class="md-subheader">Review the logs of all Wazuh manager daemons</span>
|
|
|
|
</div>
|
|
|
|
<!-- End headline -->
|
|
|
|
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- Filters and Realtime button section -->
|
2018-07-03 08:05:56 +00:00
|
|
|
<div ng-show="!loading" layout="row" layout-align="start center" class="md-padding">
|
2018-06-18 09:43:13 +00:00
|
|
|
<div layout="column" flex="40" class="height-40 wz-margin-right-15">
|
|
|
|
<div layout="row">
|
|
|
|
<input placeholder="Filter logs..." ng-model="custom_search" type="text" class="kuiLocalSearchInput ng-empty ng-pristine ng-scope ng-touched ng-valid"
|
|
|
|
aria-invalid="false" wz-enter="search(custom_search)">
|
|
|
|
<button type="submit" aria-label="Search" class="kuiLocalSearchButton height-40" ng-click="search(custom_search)">
|
|
|
|
<span class="fa fa-search" aria-hidden="true"></span>
|
2018-07-02 12:54:33 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-06-18 09:43:13 +00:00
|
|
|
</div>
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- Daemon selector -->
|
2018-08-23 07:55:16 +00:00
|
|
|
<div flex="20" layout="column" layout-align="center" class="height-40 wz-margin-right-15 wz-select-input">
|
|
|
|
<select flex class="kuiSelect wz-border-none cursor-pointer max-height-35" ng-disabled="realtime" id="categoryBox" ng-model="category" ng-change="filter({name:'category',value:category})"
|
2018-03-08 11:59:39 +00:00
|
|
|
aria-label="Logs category">
|
2018-05-28 14:09:35 +00:00
|
|
|
<option value="all">All daemons</option>
|
2018-08-16 09:58:04 +00:00
|
|
|
<option ng-repeat="daemon in daemons | orderObjectBy: 'title'" value="{{daemon.title}}">{{daemon.title}}</option>
|
2018-03-08 11:59:39 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- End daemon selector -->
|
2016-09-20 08:55:43 +00:00
|
|
|
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- Level selector -->
|
2018-08-23 07:55:16 +00:00
|
|
|
<div flex="20" layout="column" layout-align="center" class="height-40 wz-select-input">
|
|
|
|
<select flex class="kuiSelect wz-border-none cursor-pointer max-height-35" ng-disabled="realtime" id="levelBox" ng-model="type_log" ng-change="filter({name:'type_log',value:type_log})"
|
2018-03-08 11:59:39 +00:00
|
|
|
aria-label="Logs level">
|
2018-05-28 14:09:35 +00:00
|
|
|
<option value="all">All log levels</option>
|
2018-03-08 11:59:39 +00:00
|
|
|
<option value="info">Info</option>
|
|
|
|
<option value="error">Error</option>
|
|
|
|
<option value="warning">Warning</option>
|
2018-07-26 15:03:27 +00:00
|
|
|
<option value="critical">Critical</option>
|
|
|
|
<option value="debug">Debug</option>
|
2018-03-08 11:59:39 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- End Level selector -->
|
2018-04-30 09:18:21 +00:00
|
|
|
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- White space between filters and Realtime button -->
|
2017-11-21 17:22:49 +00:00
|
|
|
<span flex></span>
|
2018-05-28 14:09:35 +00:00
|
|
|
|
2018-06-06 09:03:23 +00:00
|
|
|
<md-button ng-if="!realtime" class="wz-button md-raised md-primary" ng-click="playRealtime()" aria-label="Play realtime button">
|
2018-02-20 11:36:06 +00:00
|
|
|
<i class="fa fa-play fa-fw" aria-hidden="true"></i>
|
2017-11-21 17:22:49 +00:00
|
|
|
Play realtime
|
|
|
|
</md-button>
|
2018-06-06 09:03:23 +00:00
|
|
|
<md-button ng-if="realtime" class="wz-button md-raised md-primary" ng-click="stopRealtime()" aria-label="Stop realtime button">
|
2018-02-20 11:36:06 +00:00
|
|
|
<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-05-28 14:09:35 +00:00
|
|
|
<!-- End Filters and Realtime button section -->
|
2018-02-20 11:36:06 +00:00
|
|
|
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- Logs table section -->
|
2018-07-02 12:54:33 +00:00
|
|
|
<div layout="row" layout-padding>
|
2018-08-16 15:02:30 +00:00
|
|
|
<wz-table
|
2018-07-02 12:54:33 +00:00
|
|
|
flex
|
2018-07-09 13:05:22 +00:00
|
|
|
extra-limit="true"
|
2018-07-02 12:54:33 +00:00
|
|
|
path="'/manager/logs'"
|
2018-06-19 15:37:21 +00:00
|
|
|
keys="['timestamp',{value:'tag',size:2},'level',{value:'description',size:4,nosortable:true}]"
|
2018-08-16 15:02:30 +00:00
|
|
|
row-sizes="[15,13,11]">
|
|
|
|
</wz-table>
|
2017-10-20 20:37:42 +00:00
|
|
|
</div>
|
2018-05-28 14:09:35 +00:00
|
|
|
<!-- End Logs table section -->
|
2018-06-18 09:43:13 +00:00
|
|
|
|
2018-07-02 12:54:33 +00:00
|
|
|
<div layout="row" layout-padding>
|
2018-06-18 09:43:13 +00:00
|
|
|
<span flex></span>
|
|
|
|
<a class="small" id="btnDownload" ng-click="downloadCsv()">Formatted <i aria-hidden="true" class="fa fa-fw fa-download"></i></a>
|
|
|
|
</div>
|
2017-11-21 17:22:49 +00:00
|
|
|
</div>
|