]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #4442: Add date-time filtering for firewall logs
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 9 Aug 2023 10:55:28 +0000 (12:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Nov 2023 14:23:49 +0000 (15:23 +0100)
Extend the current firewall log view to add date time based filtering.
The user can switch between live view, which shows logs from the
unrotated log file, or to filter mode, where date time based filtering,
including rotated logs can be performed.

Enable the feature by setting the property and the submit format
for since and until timestamps expected by the api.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
www/manager6/node/Config.js
www/manager6/qemu/Config.js

index 6ad48544f7aae1c75d23a668eb0c4f996318b984..f1a82e6e4edea3f2a4b53626a537541ce2c0903d 100644 (file)
@@ -412,6 +412,8 @@ Ext.define('PVE.node.Config', {
                    onlineHelp: 'chapter_pve_firewall',
                    url: '/api2/extjs/nodes/' + nodename + '/firewall/log',
                    itemId: 'firewall-fwlog',
                    onlineHelp: 'chapter_pve_firewall',
                    url: '/api2/extjs/nodes/' + nodename + '/firewall/log',
                    itemId: 'firewall-fwlog',
+                   log_select_timespan: true,
+                   submitFormat: 'U',
                },
                {
                    xtype: 'cephLogView',
                },
                {
                    xtype: 'cephLogView',
index fb0d9cded1ee37641e4f860d70be7f9e4c00b5b3..2f9605a49e007ede157fc0bfcf43f215b0c9d0d2 100644 (file)
@@ -390,6 +390,8 @@ Ext.define('PVE.qemu.Config', {
                    itemId: 'firewall-fwlog',
                    xtype: 'proxmoxLogView',
                    url: '/api2/extjs' + base_url + '/firewall/log',
                    itemId: 'firewall-fwlog',
                    xtype: 'proxmoxLogView',
                    url: '/api2/extjs' + base_url + '/firewall/log',
+                   log_select_timespan: true,
+                   submitFormat: 'U',
                },
            );
        }
                },
            );
        }