Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rsyslog rules description #4839

Merged
merged 2 commits into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ description: |-
Configure <tt>rsyslog</tt> to use Transport Layer
Security (TLS) support for logging to remote server
for the Forwarding Output Module in <tt>/etc/rsyslog.conf</tt>
using action
<pre>action(type="omfwd" protocol="tcp" Target="&lt;remote system>" port="6514"
StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="x509/name")
using action. You can use the following command:
<pre>echo 'action(type="omfwd" protocol="tcp" Target="&lt;remote system>" port="6514"
StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="x509/name")' >> /etc/rsyslog.conf
</pre>
Replace the <tt>&lt;remote system></tt> in the above command with an IP address or a host name of the remote logging server.

rationale: |-
For protection of data being logged, the connection to the
Expand All @@ -35,3 +36,4 @@ ocil: |-
<pre>action(type="omfwd" protocol="tcp" Target="&lt;remote system>" port="6514"
StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="x509/name")
</pre>
where the <tt>&lt;remote system></tt> present in the configuration line above must be a valid IP address or a host name of the remote logging server.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ description: |-
Configure CA certificate for <tt>rsyslog</tt> logging
to remote server using Transport Layer Security (TLS)
using correct path for the <tt>DefaultNetstreamDriverCAFile</tt>
global option in <tt>/etc/rsyslog.conf</tt>, for example
<pre>global(DefaultNetstreamDriverCAFile="/etc/pki/tls/cert.pem") *.*</pre>
global option in <tt>/etc/rsyslog.conf</tt>, for example with the following command:
<pre>echo 'global(DefaultNetstreamDriverCAFile="/etc/pki/tls/cert.pem") *.*' >> /etc/rsyslog.conf</pre>
Replace the <tt>/etc/pki/tls/cert.pem</tt> in the above command with the path to the file with CA certificate generated for the purpose of remote logging.

rationale: |-
The CA certificate needs to be set or <tt>rsyslog.service</tt>
Expand All @@ -32,3 +33,4 @@ ocil: |-
<pre>$ grep DefaultNetstreamDriverCAFile /etc/rsyslog.conf /etc/rsyslog.d/*.conf</pre>
The output should include record similar to
<pre>global(DefaultNetstreamDriverCAFile="/etc/pki/tls/cert.pem") *.*</pre>
where the path to the CA file (<tt>/etc/pki/tls/cert.pem</tt> in case above) must point to the correct CA certificate.