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

111 lines
4.6 KiB
HTML
Raw Normal View History

2018-05-28 14:09:35 +00:00
<div ng-cloak flex layout="column" layout-padding class="mozilla-table-size-85" ng-controller="managerLogController" ng-if="!loading && submenuNavItem == 'logs'">
2018-05-28 14:09:35 +00:00
<!-- Loading ring -->
<div class='uil-ring-css' ng-show="loading">
<div></div>
</div>
<!-- Filters and Realtime button section -->
<div ng-show="!loading" layout="row" layout-align="start center">
<!-- Daemon selector -->
<div flex="20" layout="column" class="height-40 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">
2018-05-28 14:09:35 +00:00
<option value="all">All daemons</option>
2018-03-08 11:59:39 +00:00
<option ng-repeat="(key, value) in summary" value="{{key}}">{{key}}</option>
</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 -->
<div flex="20" layout="column" class="height-40 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">
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>
</select>
</div>
2018-05-28 14:09:35 +00:00
<!-- End Level selector -->
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
<md-button ng-if="!realtime" class="wazuh-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-05-28 14:09:35 +00:00
<md-button ng-if="realtime" class="wazuh-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 -->
<div ng-show="!loading" flex layout="column">
2017-10-20 20:37:42 +00:00
2018-05-28 14:09:35 +00:00
<!-- Searchbar section -->
<wz-search-bar isdisabled="realtime" data="logs" term="searchTerm" placetext="'Search logs...'"></wz-search-bar>
<!-- End Searchbar section -->
2018-05-28 14:09:35 +00:00
<!-- Realtime disabled section -->
<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>
2018-05-28 14:09:35 +00:00
<wz-table
layout="column"
flex
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>
<!-- End Realtime disabled section -->
2017-10-20 20:37:42 +00:00
2018-05-28 14:09:35 +00:00
<!-- Realtime enabled section -->
<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-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>
2018-05-28 14:09:35 +00:00
<!-- End Realtime enabled section -->
2018-05-28 16:24:16 +00:00
<!-- CSV Download button section -->
<div layout="row" class="wz-margin-top-10">
<span flex></span>
2018-05-28 14:09:35 +00:00
<a class="small" id="btnDownload" ng-click="downloadCsv()">Formatted <i aria-hidden="true" class="fa fa-fw fa-download"></i></a>
</div>
2018-05-28 16:24:16 +00:00
<!-- End CSV Download button section -->
2017-10-20 20:37:42 +00:00
</div>
2018-05-28 14:09:35 +00:00
<!-- End Logs table section -->
2017-11-21 17:22:49 +00:00
</div>