FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
middleware:rsyslog:syslog-server.html [2018/01/28 01:31] kurihara |
middleware:rsyslog:syslog-server.html [2018/04/19 00:11] (current) kurihara |
||
---|---|---|---|
Line 10: | Line 10: | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
+ | # | ||
#### MODULES #### | #### MODULES #### | ||
+ | # | ||
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | $ModLoad imuxsock # provides support for local system logging (e.g. via logger command) | ||
$ModLoad imjournal # provides access to the systemd journal | $ModLoad imjournal # provides access to the systemd journal | ||
+ | ## Syslog Serfer | ||
+ | # Provides UDP syslog reception | ||
+ | $ModLoad imudp | ||
+ | $UDPServerRun 514 | ||
+ | |||
+ | # Provides TCP syslog reception | ||
+ | $ModLoad imtcp | ||
+ | $InputTCPServerRun 514 | ||
+ | |||
+ | # | ||
#### GLOBAL DIRECTIVES #### | #### GLOBAL DIRECTIVES #### | ||
+ | # | ||
$WorkDirectory / | $WorkDirectory / | ||
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat | $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat | ||
Line 23: | Line 35: | ||
$IMJournalStateFile imjournal.state | $IMJournalStateFile imjournal.state | ||
+ | # Syslog Server | ||
+ | $umask 0022 | ||
+ | $FileCreateMode 0644 | ||
+ | $DirCreateMode 0755 | ||
+ | |||
+ | # | ||
#### RULES #### | #### RULES #### | ||
+ | # Rules are applied sequentially from the top | ||
+ | # | ||
+ | # Syslog Server Rule | ||
+ | $template RemoteHost, "/ | ||
+ | : | ||
+ | & ~ | ||
+ | |||
+ | # Default Rule | ||
*.info; | *.info; | ||
authpriv.* | authpriv.* | ||
Line 32: | Line 58: | ||
local7.* | local7.* | ||
- | # | ||
- | # Syslog Server | ||
- | # | ||
- | # Provides UDP syslog reception | ||
- | $ModLoad imudp | ||
- | $UDPServerRun 514 | ||
- | # Provides TCP syslog reception | + | # Max messages is 10000 messages in 30 seconds |
- | $ModLoad imtcp | + | # you must change / |
- | $InputTCPServerRun 514 | + | $imjournalRatelimitInterval 30 |
+ | $imjournalRatelimitBurst 10000 | ||
+ | </ | ||
- | $umask 0022 | ||
- | $FileCreateMode 0644 | ||
- | $DirCreateMode 0755 | ||
+ | \\ | ||
+ | \\ | ||
+ | ===== Note ===== | ||
+ | ==== Template ==== | ||
+ | |||
+ | <sxh bash toolbar: | ||
+ | # Template name is RemoteHost | ||
+ | $template RemoteHost, "/ | ||
+ | : | ||
+ | & ~ | ||
+ | </ | ||
+ | |||
+ | <sxh bash toolbar: | ||
# Template name is RemoteHost | # Template name is RemoteHost | ||
$template RemoteHost, "/ | $template RemoteHost, "/ | ||
Line 53: | Line 85: | ||
</ | </ | ||
- | |||
- | \\ | ||
- | ===== Note ===== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
# Template name is RemoteHost | # Template name is RemoteHost | ||
Line 63: | Line 92: | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | ==== AllowedSender==== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 74: | Line 106: | ||
</ | </ | ||
+ | \\ | ||
+ | <WRAP box 90%> | ||
+ | <catlist -noAddPageButton -smallHead -sortAscending> | ||
+ | </ | ||
\\ | \\ | ||
\\ | \\ | ||
[[middleware: | [[middleware: |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.