From 1d08d048b8b31d2f5037e00ed2fee707aebdfa6f Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 16 Oct 2023 16:09:17 +0200 Subject: [PATCH] journalwatch config --- modules/journalwatch.nix | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/modules/journalwatch.nix b/modules/journalwatch.nix index 72900f0..b3b0835 100644 --- a/modules/journalwatch.nix +++ b/modules/journalwatch.nix @@ -215,9 +215,9 @@ } { # yodaNas filters = '' - \S+ \S+ UTC \[[0-9]+\] LOG:\s+listening on IPv4 address "0\.0\.0\.0", port 5432 - \S+ \S+ UTC \[[0-9]+\] LOG:\s+listening on IPv6 address "::", port 5432 - \S+ \S+ UTC \[[0-9]+\] LOG:\s+listening on Unix socket "/var/run/postgresql/\.s\.PGSQL\.5432" + \S+ \S+ UTC \[[0-9]+\] LOG:\s+listening on IPv4 address \S+, port 5432 + \S+ \S+ UTC \[[0-9]+\] LOG:\s+listening on IPv6 address \S+, port 5432 + \S+ \S+ UTC \[[0-9]+\] LOG:\s+listening on Unix socket \S+ \S+ \S+ UTC \[[0-9]+\] LOG:\s+database system was shut down at \S+ \S+ UTC \S+ \S+ UTC \[[0-9]+\] LOG:\s+database system is ready to accept connections # @@ -237,10 +237,14 @@ \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[InnoDB\] InnoDB initialization has started\. \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[InnoDB\] InnoDB initialization has ended\. \S+ [0-9]+ \[Warning\] \[MY-[0-9]+\] \[Server\] CA certificate ca\.pem is self signed\. - \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[Server\] Channel mysql_main configured to support TLS\. Encrypted connections are now supported for this channel\.\. - \S+ [0-9]+ \[Warning\] \[MY-[0-9]+\] \[Server\] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users\. Consider choosing a different directory\.\. + \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[Server\] Channel mysql_main configured to support TLS\. Encrypted connections are now supported for this channel\.+ + \S+ [0-9]+ \[Warning\] \[MY-[0-9]+\] \[Server\] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users\. Consider choosing a different directory\.+ \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[Server\] X Plugin ready for connections\. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx\.sock \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[Server\] /usr/sbin/mysqld: ready for connections\. Version: '\S+' socket: '/var/run/mysqld/mysqld\.sock' port: 3306 MySQL Community Server - GPL\. + # + \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[Server\] Received SHUTDOWN from user \. Shutting down mysqld \(Version: \S+\)\. + \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[Server\] /usr/sbin/mysqld: Shutdown complete \(mysqld \S+\) MySQL Community Server - GPL\. + \S+ [0-9]+ \[System\] \[MY-[0-9]+\] \[Server\] MySQL Server - end\. ''; match = "IMAGE_NAME = /mysql:[0-9]+/"; } @@ -253,16 +257,20 @@ } { # yodaNas filters = '' - \[\S+ \S+ \S+ \S+ \S+\] \[mpm_prefork:notice\] \[pid 1\] AH00170: caught SIGWINCH, shutting down gracefully + AH[0-9]+: apache2: Could not reliably determine the server's fully qualified domain name, using \S+\. Set the 'ServerName' directive globally to suppress this message + \[\S+ \S+ \S+ \S+ \S+\] \[mpm_prefork:notice\] \[pid 1\] AH[0-9]+: Apache/\S+ (Debian) configured -- resuming normal operations + \[\S+ \S+ \S+ \S+ \S+\] \[core:notice\] \[pid 1\] AH[0-9]+: Command line: 'apache2 -D FOREGROUND' > Illuminate\\Foundation\\ComposerScripts::postAutoloadDump wait-for-it\.sh: waiting 60 seconds for \S+:3306 wait-for-it\.sh: \S+:3306 is available after [0-9]+ seconds + # + \[\S+ \S+ \S+ \S+ \S+\] \[mpm_prefork:notice\] \[pid 1\] AH[0-9]+: caught SIGWINCH, shutting down gracefully ''; match = "IMAGE_NAME = fireflyiii/core:latest"; } { # yodaNas filters = '' - AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using \S+\. Set the 'ServerName' directive globally to suppress this message + AH[0-9]+: apache2: Could not reliably determine the server's fully qualified domain name, using \S+\. Set the 'ServerName' directive globally to suppress this message \[\S+ \S+ \S+ \S+ \S+\] \[mpm_prefork:notice\] \[pid 1\] AH[0-9]+: Apache/\S+ (Debian) configured -- resuming normal operations \[\S+ \S+ \S+ \S+ \S+\] \[core:notice\] \[pid 1\] AH[0-9]+: Command line: 'apache2 -D FOREGROUND' # @@ -303,19 +311,12 @@ ''; match = "_SYSTEMD_UNIT = systemd-logind.service"; } - { # yodaTux + { # yodaTux, yodaNas filters = '' Reexecuting\. (finished )?switching to system configuration /nix/store/.+-nixos-system-.+-[0-9]+\.[0-9]+pre-git ''; - match = "_SYSTEMD_UNIT = user@0.service"; - } - { # yodaTux - filters = '' - Reexecuting\. - (finished )?switching to system configuration /nix/store/.+-nixos-system-.+-[0-9]+\.[0-9]+pre-git - ''; - match = "_SYSTEMD_UNIT = user@1000.service"; + match = "_SYSTEMD_UNIT = /(user@[0-9]+\\.service|init.scope)/"; } { # yodaTux filters = '' @@ -402,7 +403,6 @@ watchdog: watchdog0: watchdog did not stop! # Ignore. \s*#[0-9]* - audit: type=2000 audit\([^)]\): state=initialized audit_enabled=0 res=1 # Ingore: Probably just copying of boot graphics (.bmp) failed. https://patchwork.kernel.org/project/linux-fbdev/patch/20180617153235.16219-3-hdegoede@redhat.com/ efifb: Ignoring BGRT: unexpected or invalid BMP data # Probably safe to ignore. @@ -423,7 +423,7 @@ iwlwifi 0000:01:00\.0: Not associated and the session protection is over already... iwlwifi 0000:01:00\.0: api flags index 2 larger than supported by driver # Ignore. - audit: type=2000 audit([0-9]+\.[0-9]+:[0-9]+): state=initialized audit_enabled=0 res=1 + audit: type=2000 audit\([0-9]+\.[0-9]+:[0-9]+\): state=initialized audit_enabled=0 res=1 ENERGY_PERF_BIAS: Set to 'normal', was 'performance' Kernel command line: initrd=\\efi\\nixos\\\S+-initrd-linux-\S+-initrd\.efi init=/nix/store/\S+-nixos-system-\S+-[0-9]+\.[0-9]+pre-git/init ip=dhcp loglevel=[0-9] Linux version \S+ \(nixbld@localhost\) \(gcc \(GCC\) \S+, GNU ld \(GNU Binutils\) \S+\) #1-NixOS SMP PREEMPT_DYNAMIC \S+ \S+ \S+ \S+ UTC \S+