This patch introduces callback based filtering functionality for firewall logs.
In addition, the contents of rotated logfiles are included by setting the
`include_rotated_logs` flag.
Signed-off-by: Christian Ebner
---
src/PVE/Tools.pm | 108 +++
1
The optional unix epoch timestamps parameters `since` and `until` are introduced
in order to filter firewall logs files. If one of these flags is set, also
rotated logfiles are included.
Filtering is now performed based on a callback function passed to
`dump_fw_logfile`.
This patch depends on
This patch series introduces 2 optional api parameters `since` and `until` to
firewall log endpoints, in order to make them filterable.
Filtering of the firewall logs is performed by a callback function.
If the `include_rotated_logs` flag is set, also rotated logfiles are included.
---
Changes
--- Begin Message ---
It is useful for external groups that would like to utilize the
jsonschema that outlines the pve api to have the schema in a raw json
format. Although we can parse the apidata.js and remove the offending
characters it is error prone & bad practice. This provides a much nicer
applied both patches, thanks
___
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel