|
|
@ -6,7 +6,7 @@
|
|
|
|
<table class="overview">
|
|
|
|
<table class="overview">
|
|
|
|
<tr class="overviewHead">
|
|
|
|
<tr class="overviewHead">
|
|
|
|
<td class="padding10 first-collumn" style="width: 10%;">
|
|
|
|
<td class="padding10 first-collumn" style="width: 10%;">
|
|
|
|
{% if onclick == 'viewLogs()' %}
|
|
|
|
{% if select_id == 'viewlogs' %}
|
|
|
|
Log
|
|
|
|
Log
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
Server
|
|
|
|
Server
|
|
|
@ -15,20 +15,21 @@
|
|
|
|
{% if onclick != 'viewLogs()' and service != 'nginx' %}
|
|
|
|
{% if onclick != 'viewLogs()' and service != 'nginx' %}
|
|
|
|
<td style="width: 5%;">WAF logs</td>
|
|
|
|
<td style="width: 5%;">WAF logs</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<td style="width: 10%;">Number rows</td>
|
|
|
|
<td>Number rows</td>
|
|
|
|
<td class="padding10" style="width: 10%;">Ex for grep</td>
|
|
|
|
<td class="padding10"><span title="Find in log file(supports regular expressions)">Find (?)<span></td>
|
|
|
|
|
|
|
|
<td class="padding10"><span title="Exclude from search in log file(supports regular expressions)">Exclude (?)<span></td>
|
|
|
|
<td style="width: 10%;">
|
|
|
|
<td style="width: 10%;">
|
|
|
|
<label for="time_range_out_hour" style="padding: 0">Time range:</label>
|
|
|
|
<label for="time_range_out_hour" style="padding: 0">Time range:</label>
|
|
|
|
{{ input('time_range_out_hour', value=hour, class='time-range', readonly='readonly') }}:{{ input('time_range_out_minut', value=minut, class='time-range', readonly='readonly') }}
|
|
|
|
{{ input('time_range_out_hour', value=hour, class='time-range', readonly='readonly') }}:{{ input('time_range_out_minut', value=minut, class='time-range', readonly='readonly') }}
|
|
|
|
{{ input('time_range_out_hour1', value=hour1, class='time-range', readonly='readonly') }}:{{ input('time_range_out_minut1', value=minut1, class='time-range', readonly='readonly') }}
|
|
|
|
{{ input('time_range_out_hour1', value=hour1, class='time-range', readonly='readonly') }}:{{ input('time_range_out_minut1', value=minut1, class='time-range', readonly='readonly') }}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td style="width: 10%;"> </td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="padding10 first-collumn" style="width: 10%;">
|
|
|
|
<td class="padding10 first-collumn" style="width: 10%;">
|
|
|
|
<form action="" method="post">
|
|
|
|
<form action="" method="post" id="show_log_form">
|
|
|
|
{% if onclick == 'viewLogs()' %}
|
|
|
|
{% if select_id == 'viewlogs' %}
|
|
|
|
<select autofocus required name="serv" id="{{ select_id }}">
|
|
|
|
<select autofocus required name="serv" id="{{ select_id }}">
|
|
|
|
<option disabled selected>Choose log</option>
|
|
|
|
<option disabled selected>Choose log</option>
|
|
|
|
{% for select in selects %}
|
|
|
|
{% for select in selects %}
|
|
|
|
{% if select.0|int() == serv|int() %}
|
|
|
|
{% if select.0|int() == serv|int() %}
|
|
|
@ -42,29 +43,32 @@
|
|
|
|
{% include 'include/select.html' %}
|
|
|
|
{% include 'include/select.html' %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
{% if onclick != 'viewLogs()' and service != 'nginx' %}
|
|
|
|
{% if select_id == 'viewlogs' and service != 'nginx' %}
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
{{ checkbox('waf') }}
|
|
|
|
{{ checkbox('waf') }}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<td class="padding10" style="width: 10%;">
|
|
|
|
<td class="padding10" style="width: 10%;">
|
|
|
|
{{ input('rows', type='number', value=rows, required='required') }}
|
|
|
|
{{ input('rows', type='number', value=rows, required='required', size='5') }}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="padding10" style="width: 10%;">
|
|
|
|
<td class="padding10" style="width: 10%;">
|
|
|
|
{{ input('grep', value=grep) }}
|
|
|
|
{{ input('grep', value=grep) }}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="padding10" style="width: 10%;">
|
|
|
|
|
|
|
|
{{ input('exgrep', value=exgrep) }}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td class="padding10" style="width: 10%;">
|
|
|
|
<td class="padding10" style="width: 10%;">
|
|
|
|
<div id="time-range"></div>
|
|
|
|
<div id="time-range"></div>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td class="padding10 first-collumn" style="width: 10%;">
|
|
|
|
<td class="padding10 first-collumn" style="width: 10%;">
|
|
|
|
<a class="ui-button ui-widget ui-corner-all" id="show" title="Show logs" onclick="{{ onclick }}">Show</a>
|
|
|
|
<button type="submit" name="Show log" value="Show" id="show_log_button">Show</button>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
<div id="ajax">
|
|
|
|
<div id="ajax">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% if onclick == 'viewLogs()' and serv != '' and viewlogs != '' and viewlogs != 'haproxy-wi.error.log' and viewlogs != 'haproxy-wi.access.log' %}
|
|
|
|
{% if select_id == 'viewlogs' and serv != '' and viewlogs != '' and viewlogs != 'haproxy-wi.error.log' and viewlogs != 'haproxy-wi.access.log' %}
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
viewLogs()
|
|
|
|
viewLogs()
|
|
|
|
if (window.matchMedia('(max-width: 786px)').matches || window.matchMedia('(max-width: 1024px)').matches || window.matchMedia('(max-width: 667px)').matches) {
|
|
|
|
if (window.matchMedia('(max-width: 786px)').matches || window.matchMedia('(max-width: 1024px)').matches || window.matchMedia('(max-width: 667px)').matches) {
|
|
|
|