Files
ansible-playbook/llmdoc/reference/journald-parameters.md
Wang Defa 167fad20eb 添加 Nezha Agent 管理功能和完整文档系统
- 新增 Nezha Agent client_secret 更新 playbook(两种实现方案)
- 建立三层文档架构:docs/(用户文档)、examples/(配置示例)、llmdoc/(技术文档)
- 添加项目主 README.md 和配置示例文件
- 初始化 .gitignore 保护敏感信息
2025-12-16 10:52:38 +08:00

53 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Journald 配置参数参考
## 核心摘要
本文档提供了 systemd-journald 日志配置的详细参数参考,旨在帮助开发者和系统管理员精确控制日志行为。
## 参数列表
### 空间管理参数
1. **SystemMaxUse**
- **描述:** 日志总体使用空间上限
- **默认值:** "500M"
- **类型:** 存储大小(字节/K/M/G
- **作用:** 限制所有日志条目占用的总磁盘空间
2. **SystemMaxFileSize**
- **描述:** 单个日志文件大小限制
- **默认值:** "100M"
- **类型:** 存储大小(字节/K/M/G
- **作用:** 控制单个日志文件的最大尺寸
### 保留和过期策略
3. **MaxRetentionSec**
- **描述:** 日志保留时间
- **默认值:** "7day"
- **类型:** 时间间隔(秒/分钟/小时/天)
- **作用:** 确定日志保留的最长时间
### 速率控制参数
4. **RateLimitIntervalSec**
- **描述:** 日志速率限制时间间隔
- **默认值:** "30s"
- **类型:** 时间间隔
- **作用:** 定义速率限制的时间窗口
5. **RateLimitBurst**
- **描述:** 日志突发速率限制
- **默认值:** "10000"
- **类型:** 整数
- **作用:** 在指定时间间隔内允许的最大日志条目数
## 源代码引用
- **主要配置文件:** `journald_configure.yml`
- **架构文档:** `/llmdoc/architecture/journald-configuration-flow.md`
## 相关架构文档
- [Journald 配置流程架构](/llmdoc/architecture/journald-configuration-flow.md)
- [Journald 配置指南](/llmdoc/guides/how-to-configure-journald.md)