summaryrefslogtreecommitdiffstats
path: root/modules-available/syslog
diff options
context:
space:
mode:
authorSimon Rettberg2025-05-22 18:07:09 +0200
committerSimon Rettberg2025-05-22 18:07:09 +0200
commit3ae8d417ae410cf1d00b187a2f736d2a1ee50f5c (patch)
treef0e3ee00894cce78903dec50c3254258ed080e60 /modules-available/syslog
parent[serversetup-bwlp-ipxe] Open entry editor as popup from menu editor (diff)
downloadslx-admin-3ae8d417ae410cf1d00b187a2f736d2a1ee50f5c.tar.gz
slx-admin-3ae8d417ae410cf1d00b187a2f736d2a1ee50f5c.tar.xz
slx-admin-3ae8d417ae410cf1d00b187a2f736d2a1ee50f5c.zip
[syslog/eventlog] Allow creating filter rule based on client log entry
Diffstat (limited to 'modules-available/syslog')
-rw-r--r--modules-available/syslog/templates/page-syslog.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules-available/syslog/templates/page-syslog.html b/modules-available/syslog/templates/page-syslog.html
index 2b7c1439..33be4ab7 100644
--- a/modules-available/syslog/templates/page-syslog.html
+++ b/modules-available/syslog/templates/page-syslog.html
@@ -42,6 +42,7 @@
<th class="text-center">{{lang_client}}</th>
<th class="text-center">{{lang_event}}</th>
<th width="1">{{lang_details}}</th>
+ <th width="1">{{lang_addFilter}}</th>
</thead>
<tbody>
{{#list}}
@@ -55,6 +56,11 @@
data-toggle="modal" data-target="#myModal">&raquo;</a>
<div class="hidden" id="extra-{{logid}}">{{extra}}</div>
{{/extra}}</td>
+ <td class="text-center">
+ <a class="btn btn-default btn-xs" href="?do=eventlog&amp;show=rules&amp;action=editrule&amp;type={{logtypeid}}&amp;filter[description]={{description}}&amp;exists[]=clientip&amp;subject=Event+{{logtypeid}}&amp;message=IP%3A+%251%25%2C+Content%3A+%250%25">
+ <span class="glyphicon glyphicon-plus"></span>
+ </a>
+ </td>
</tr>
{{/list}}
</tbody>