<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=RSYSLOG_-_Configuration</id>
	<title>RSYSLOG - Configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=RSYSLOG_-_Configuration"/>
	<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;action=history"/>
	<updated>2026-05-02T18:30:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;diff=1098&amp;oldid=prev</id>
		<title>Admin at 09:36, 17 January 2026</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;diff=1098&amp;oldid=prev"/>
		<updated>2026-01-17T09:36:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;amp;diff=1098&amp;amp;oldid=957&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;diff=957&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Wiki&quot; to &quot;Category:Wiki

&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;
&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;diff=957&amp;oldid=prev"/>
		<updated>2026-01-17T07:12:57Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:12, 17 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuration Files ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Configuration Files ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;diff=502&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Category:Wiki  == Configuration Files ==  Rsyslog is primarily configured through the `/etc/rsyslog.conf` file and the `/etc/rsyslog.d/` directory, where additional configuration files can be placed. The main configuration file `/etc/rsyslog.conf` controls global settings, while the files in `/etc/rsyslog.d/` allow modular configuration.  == Main Configuration File ==  The main configuration file contains global settings, input modules, and output modules. Here’s a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=RSYSLOG_-_Configuration&amp;diff=502&amp;oldid=prev"/>
		<updated>2025-12-14T08:20:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  == Configuration Files ==  Rsyslog is primarily configured through the `/etc/rsyslog.conf` file and the `/etc/rsyslog.d/` directory, where additional configuration files can be placed. The main configuration file `/etc/rsyslog.conf` controls global settings, while the files in `/etc/rsyslog.d/` allow modular configuration.  == Main Configuration File ==  The main configuration file contains global settings, input modules, and output modules. Here’s a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Wiki]]&lt;br /&gt;
&lt;br /&gt;
== Configuration Files ==&lt;br /&gt;
&lt;br /&gt;
Rsyslog is primarily configured through the `/etc/rsyslog.conf` file and the `/etc/rsyslog.d/` directory, where additional configuration files can be placed. The main configuration file `/etc/rsyslog.conf` controls global settings, while the files in `/etc/rsyslog.d/` allow modular configuration.&lt;br /&gt;
&lt;br /&gt;
== Main Configuration File ==&lt;br /&gt;
&lt;br /&gt;
The main configuration file contains global settings, input modules, and output modules. Here’s an example of a basic configuration file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# /etc/rsyslog.conf&lt;br /&gt;
&lt;br /&gt;
# Load the necessary modules&lt;br /&gt;
module(load=&amp;quot;imuxsock&amp;quot;)        # Unix socket for local syslog messages&lt;br /&gt;
module(load=&amp;quot;imklog&amp;quot;)          # Kernel logging module&lt;br /&gt;
&lt;br /&gt;
# Global settings&lt;br /&gt;
global(workDirectory=&amp;quot;/var/spool/rsyslog&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
# Define template for log file formatting&lt;br /&gt;
template(name=&amp;quot;LogFormat&amp;quot; type=&amp;quot;string&amp;quot; string=&amp;quot;%TIMESTAMP% %HOSTNAME% %syslogtag%%msg%\n&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
# Default logging rules for local logs&lt;br /&gt;
*.* /var/log/syslog;LogFormat&lt;br /&gt;
&lt;br /&gt;
# Remote logging configuration&lt;br /&gt;
*.* @remote.syslog.server:514&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Modular Configuration ==&lt;br /&gt;
&lt;br /&gt;
For better organization and flexibility, you can add custom configurations in the `/etc/rsyslog.d/` directory. Each file within this directory contains specific configurations for different log sources or destinations.&lt;br /&gt;
&lt;br /&gt;
Example of a custom file for remote logging (`/etc/rsyslog.d/remote.conf`):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# /etc/rsyslog.d/remote.conf&lt;br /&gt;
&lt;br /&gt;
# Send all logs to a remote syslog server&lt;br /&gt;
*.* @logserver.example.com:514&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Input Modules ==&lt;br /&gt;
&lt;br /&gt;
Input modules are responsible for receiving log messages from various sources. Rsyslog includes several input modules for different use cases, such as local logging, remote logging, and logging from specific applications.&lt;br /&gt;
&lt;br /&gt;
== Local Syslog Messages ==&lt;br /&gt;
&lt;br /&gt;
The `imuxsock` module is used for receiving local syslog messages through Unix domain sockets.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;imuxsock&amp;quot;)  # Load the module for local syslog messages&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Kernel Log Messages ==&lt;br /&gt;
&lt;br /&gt;
The `imklog` module is used for reading kernel log messages (i.e., messages generated by the Linux kernel).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;imklog&amp;quot;)  # Load the kernel log module&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Remote Log Reception ==&lt;br /&gt;
&lt;br /&gt;
Rsyslog supports receiving log messages from remote systems over UDP, TCP, or RELP. To enable remote logging reception, use the `imtcp` or `imudp` module.&lt;br /&gt;
&lt;br /&gt;
Example of receiving logs over UDP:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;imudp&amp;quot;)  # Load UDP input module&lt;br /&gt;
input(type=&amp;quot;imudp&amp;quot; port=&amp;quot;514&amp;quot;)  # Listen on UDP port 514&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example of receiving logs over TCP:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;imtcp&amp;quot;)  # Load TCP input module&lt;br /&gt;
input(type=&amp;quot;imtcp&amp;quot; port=&amp;quot;514&amp;quot;)  # Listen on TCP port 514&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== File Input ==&lt;br /&gt;
&lt;br /&gt;
The `imfile` module can be used to read logs from specific files.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;imfile&amp;quot;)  # Load the imfile module to read log files&lt;br /&gt;
input(type=&amp;quot;imfile&amp;quot; File=&amp;quot;/var/log/myapp.log&amp;quot; Tag=&amp;quot;myapp&amp;quot; Severity=&amp;quot;info&amp;quot;)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output Modules ==&lt;br /&gt;
&lt;br /&gt;
Output modules are used to direct log messages to different destinations, such as files, remote servers, or databases.&lt;br /&gt;
&lt;br /&gt;
== Local File Logging ==&lt;br /&gt;
&lt;br /&gt;
Logs can be directed to local files using output rules in the configuration file. For example, to store all logs in `/var/log/syslog`, you can use the following configuration:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*.* /var/log/syslog&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use templates to format log messages before writing them to files. For example, using the previously defined `LogFormat` template:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*.* /var/log/syslog;LogFormat&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Remote Syslog Logging ==&lt;br /&gt;
&lt;br /&gt;
To send logs to a remote syslog server, the following configuration is used. You can specify either UDP or TCP as the transport protocol. &lt;br /&gt;
&lt;br /&gt;
Example for UDP:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*.* @remote.syslog.server:514  # Send logs to a remote server using UDP&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example for TCP:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*.* @@remote.syslog.server:514  # Send logs to a remote server using TCP&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The `@` symbol indicates UDP, while `@@` indicates TCP.&lt;br /&gt;
&lt;br /&gt;
== Database Logging ==&lt;br /&gt;
&lt;br /&gt;
Rsyslog supports logging directly to databases, such as MySQL, PostgreSQL, or SQLite, using the `ommysql` or `ompgsql` modules. Example for logging to a MySQL database:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;ommysql&amp;quot;)  # Load MySQL output module&lt;br /&gt;
action(type=&amp;quot;ommysql&amp;quot; server=&amp;quot;localhost&amp;quot; database=&amp;quot;syslog&amp;quot; user=&amp;quot;rsyslog&amp;quot; password=&amp;quot;password&amp;quot;)&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
== JSON Logging ==&lt;br /&gt;
&lt;br /&gt;
Rsyslog can format and output logs as JSON. This is useful for integration with other systems or for structured logging. Here’s an example of how to format logs as JSON and write them to a file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
template(name=&amp;quot;jsonTemplate&amp;quot; type=&amp;quot;list&amp;quot;) {&lt;br /&gt;
    constant(value=&amp;quot;{&amp;quot;)&lt;br /&gt;
    constant(value=&amp;quot;\&amp;quot;timestamp\&amp;quot;:\&amp;quot;&amp;quot;)       property(name=&amp;quot;timegenerated&amp;quot;)&lt;br /&gt;
    constant(value=&amp;quot;\&amp;quot;,\&amp;quot;hostname\&amp;quot;:\&amp;quot;&amp;quot;)     property(name=&amp;quot;hostname&amp;quot;)&lt;br /&gt;
    constant(value=&amp;quot;\&amp;quot;,\&amp;quot;message\&amp;quot;:\&amp;quot;&amp;quot;)      property(name=&amp;quot;msg&amp;quot;)&lt;br /&gt;
    constant(value=&amp;quot;\&amp;quot;}&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
*.* /var/log/syslog.json;jsonTemplate&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Filtering and Log Level Control ==&lt;br /&gt;
&lt;br /&gt;
Rsyslog provides extensive filtering capabilities, allowing you to control the flow of log messages based on various criteria, such as severity, facility, or even specific content within the message.&lt;br /&gt;
&lt;br /&gt;
== Severity Filtering ==&lt;br /&gt;
&lt;br /&gt;
You can filter log messages based on their severity level. The standard syslog severity levels are: `emerg`, `alert`, `crit`, `err`, `warning`, `notice`, `info`, and `debug`.&lt;br /&gt;
&lt;br /&gt;
Example to log only `err` and higher severity messages to `/var/log/errors.log`:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*.err /var/log/errors.log&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Facility Filtering ==&lt;br /&gt;
&lt;br /&gt;
Syslog messages are also categorized by their facility, such as `auth`, `daemon`, `cron`, `kern`, and more. You can filter based on the facility as well.&lt;br /&gt;
&lt;br /&gt;
Example to log only `auth` facility messages:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
auth.* /var/log/auth.log&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Message Content Filtering ==&lt;br /&gt;
&lt;br /&gt;
Rsyslog allows you to filter logs based on specific content within the message. For example, to log only messages containing the string &amp;quot;error&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
if $msg contains &amp;#039;error&amp;#039; then /var/log/error_messages.log&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also use regular expressions for more advanced pattern matching:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
if $msg =~ /.*critical.*/ then /var/log/critical.log&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Advanced Topics ==&lt;br /&gt;
&lt;br /&gt;
== Rate Limiting ==&lt;br /&gt;
&lt;br /&gt;
To prevent log flooding, Rsyslog supports rate limiting of log messages. You can configure it to drop messages exceeding a certain rate or delay processing.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;imrate&amp;quot;)  # Load the rate-limiting module&lt;br /&gt;
ruleset(name=&amp;quot;RateLimit&amp;quot;) {&lt;br /&gt;
    action(type=&amp;quot;omfile&amp;quot; file=&amp;quot;/var/log/rate_limited.log&amp;quot; rate=&amp;quot;100&amp;quot; burst=&amp;quot;200&amp;quot;)&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TLS Encryption for Remote Logging ==&lt;br /&gt;
&lt;br /&gt;
For secure remote logging over TCP, you can configure TLS encryption using the `gtls` module. Here’s an example of setting up encrypted logging to a remote server:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
module(load=&amp;quot;gtls&amp;quot;)  # Load the TLS module&lt;br /&gt;
global(transport=&amp;quot;tls&amp;quot;)  # Set the global transport to TLS&lt;br /&gt;
*.* @@remote.syslog.server:6514  # Send logs securely over TLS to the remote server&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Log Rotation and Archiving ==&lt;br /&gt;
&lt;br /&gt;
Log rotation and archiving are usually managed by external tools like `logrotate`. However, you can configure Rsyslog to handle log file rotation within the `rsyslog.conf` itself using the `maxLogSize` option:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$MaxMessageSize 64k  # Set the maximum size for log messages&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>