feat: rotation for vector log files
This commit is contained in:
parent
b8cd8ff34b
commit
2421d0e06c
@ -47,5 +47,13 @@ with lib;
|
|||||||
RunAtLoad = true;
|
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
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user