首页/安全/安全加固速查/ausearch 按 key 检索与 -i 解析
本包目录(363 条)

ausearch 按 key 检索与 -i 解析

自定义规则的 -k key 就是检索标签:ausearch -k 一把捞全,-i 把十六进制参数解析成可读文本。

安全加固速查安全更新于 2026-10-12
加固项审计检索
适用平台Linux
风险等级低
基线规则 key 命名规范可检索

查询与统计

查询与统计
ausearch -k identity --start this-week | head -40
ausearch -k user_mgmt -ts today -i | head -30      # -i 可读解析
ausearch -k perm_mod --start today -i | grep -E 'name=|proctitle' | head
auformat -k exec_tmp --start today | head           # 导出分析(如已装)
key 命名要成体系(identity/perm_mod/netconfig...):命名随意等于事后没有检索线索。

易错点

  • 未加 -i 时参数是十六进制,直接看会误判
  • 查询窗口太大输出爆炸:先 --start 缩窗口再细化 key

数据来源与参考

  • ausearch(8) man page
  • Red Hat 审计文档

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌