简体   繁体   English

我们可以将 Rundeck 日志位置更改为 /data 目录吗?

[英]can we change rundeck logs location to /data directory?

We are using rundeck 2.8.4.1 we have number of rundeck job which will generate huge number of log files in /var/lib/rundeck /logs我们使用的是 rundeck 2.8.4.1 我们有很多 rundeck 作业会在 /var/lib/rundeck /logs 中生成大量的日志文件

we have housekeeping and backup jobs in place to purge the older logs in Filesystem and DB.我们有内务管理和备份工作来清除文件系统和数据库中的旧日志。

But my concern is can we change this /var/lib/rundeck/logs location in rundeck framework.properties file to /data directory?which we have more file-system space than /var.但我担心的是我们能否将 rundeck framework.properties 文件中的这个 /var/lib/rundeck/logs 位置更改为 /data 目录?我们拥有比 /var 更多的文件系统空间。

framework.logs.dir=/var/lib/rundeck/logs

To

framework.logs.dir=/data/rundeck/logs

As you say, just modify the line framework.logs.dir=/var/lib/rundeck/logs by framework.logs.dir=/your/new/path (tested on 2.8.4 and 3.2.6).如您所说,只需将framework.logs.dir=/var/lib/rundeck/logs行修改为framework.logs.dir=/your/new/path (在 2.8.4 和 3.2.6 上测试)。 Here you have more information about that. 在这里你有更多关于那个的信息。

So, remember that it's for execution logs, not for " system " Rundeck logs.所以,请记住它是用于执行日志,而不是用于“ 系统”Rundeck 日志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM