Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
108
|
第
10
章
多做一些工作可以更好地控制内容的冗长,并将其转化为非常有用的内容。我鼓励你阅读
它的用法。
RedHat
自己的文档就是很好的资源,而
auditd
也附带了示例配置,你可以在
/
usr/share/doc/auditd/examples/
中找到。
10.2.2
 
auditd
和远端日志
auditd
的一个限制是日志保留在服务器本地。因为我们希望确保日志没有被篡改,所以
需要确保它们被自动发送到中央服务器进行聚合和分析。为此,将使用一个名为
audisp-
remote
的
auditd
插件,这个插件允许将
auditd
事件转发到远程
syslog
接收器。
为什么不用
rsyslog
提取日志呢
?
一个偶尔出现问题是,既然
rsyslog
(或
syslogd/syslogd-ng
)能够提取审计日志并将其
与服务器的其他日志一起转发,那为什么还要使用
audisp-remote
呢?毕竟,一处配
置比两处好。
确实这样做从技术角度来看可行,但从安全角度来看是不可行的:由于
auditd
不是依
赖
syslog
子系统运行的,因此即使
rsyslog
被禁用了(如当一个恶意用户有意禁用),
auditd
仍可以继续记录和转发审计事件到远程服务器上。虽然这并不是万无一失的
(他们也可以禁用
audisp-remote
),但它是一个额外的保护级别。
如果你确实走
syslog
路线,那么可以使用
audisp-syslog
插件将
auditd
日志发送到
syslog
,或者可以通过
rsyslog/syslong-ng
直接从文件
/var/log/audit/audit.log ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750