| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/systemd/ |
Upload File : |
# Supplies the System Logs module with a journalctl-backed log source.
use strict;
use warnings;
require 'systemd-lib.pl'; ## no critic
our %text;
# syslog_getlogs()
# Returns a journalctl log source if journalctl is installed.
sub syslog_getlogs
{
if (has_command("journalctl")) {
# Let the System Logs module run journalctl when rendering entries.
return ( { 'cmd' => "journalctl -n 1000",
'desc' => $text{'syslog_journalctl'},
'active' => 1, } );
}
else {
# Without journalctl there is no useful systemd log source to add.
return ( );
}
}