feat: rotation for vector log files

This commit is contained in:
Jeremy Wall 2024-06-20 23:30:36 -04:00
parent b8cd8ff34b
commit 2421d0e06c

View File

@ -47,5 +47,13 @@ with lib;
RunAtLoad = true;
};
};
environment.etc."newsyslog.d/org.nixos.vector.conf" = mkIf config.services.vector.enable {
text = ''
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
${config.services.vector.stdoutPath} zaphar:staff 644 10 1000 * BJ ${config.services.vector.pidPath} 1
${config.services.vector.stderrPath} zaphar:staff 644 10 1000 * BJ ${config.services.vector.pidPath} 1
'';
};
};
}