Rsyslog: discarding specific messages, rate limitingHow to prevent rsyslog from relaying messagesRsyslog Discarding Unwanted Messagesrsyslog not logging messagesRsyslog not discarding linesSuppressing rsyslog tls error messagesrsyslog does not discard messagesHow to edit sending messages with Rsyslog?rsyslog: Discarding Unwanted Messagesrsyslog ommail sends messages with empty bodiesrsyslog not parsing RFC5424 messages
Roman Numerals Equation 2
Why does the U.S military use mercenaries?
Can EU citizens work on Iceland?
Failing students when it might cause them economic ruin
Is it standard to have the first week's pay indefinitely withheld?
Physically unpleasant work environment
What do astronauts do with their trash on the ISS?
Do we see some Unsullied doing this in S08E05?
Is there an academic word that means "to split hairs over"?
Enqueue Queueable class multiple times
Omit property variable when using object destructuring
Cannot remove door knob -- totally inaccessible!
Why are there five extra turns in tournament Magic?
Pedaling at different gear ratios on flat terrain: what's the point?
Why aren't satellites disintegrated even though they orbit earth within their Roche Limits?
What is the conversion rate for Sorcery points to Spell Points?
Why are lawsuits between the President and Congress not automatically sent to the Supreme Court
Why can't I share a one use code with anyone else?
Divisor Rich and Poor Numbers
A person lacking money who shows off a lot
Why do galaxies collide?
multiline equation inside a matrix that is a part of multiline equation
Does a non-singular matrix have a large minor with disjoint rows and columns and full rank?
Is there a method to separate iron from mercury?
Rsyslog: discarding specific messages, rate limiting
How to prevent rsyslog from relaying messagesRsyslog Discarding Unwanted Messagesrsyslog not logging messagesRsyslog not discarding linesSuppressing rsyslog tls error messagesrsyslog does not discard messagesHow to edit sending messages with Rsyslog?rsyslog: Discarding Unwanted Messagesrsyslog ommail sends messages with empty bodiesrsyslog not parsing RFC5424 messages
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I've got netatalk installed on the server and afpd is spamming system logs with the following error:
Jun 24 15:38:16 TEST afpd[21532]: sys_getextattr_size: error: Operation not supported
I'm not sure what's the actual root cause for this so I tried to discard this error message by adding the following line into rsyslog.conf config file:
if ($programname == 'afpd') then ~
It's no longer logged but it looks like afpd is still logging a lot:
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock lost 13 messages from pid 35381 due to rate-limiting
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock begins to drop messages from pid 34080 due to rate-limiting
The 35381 and 34080 are afpd PIDs.
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the messages are no longer logged so I'm not quite sure what's going on there.
Questions:
- why messages are not logged when rate limiting is disabled
- how I can permanently discard logs from
afpddaemon
Edit: Wed Jul 2 14:41:34 BST 2014:
- System: CentOS release 6.4
- rsyslog-5.8.10-6.el6.x86_64
Default configuration, I just added this line if ($programname == 'afpd') then ~ to rsyslog.conf config file.
rsyslog
add a comment |
I've got netatalk installed on the server and afpd is spamming system logs with the following error:
Jun 24 15:38:16 TEST afpd[21532]: sys_getextattr_size: error: Operation not supported
I'm not sure what's the actual root cause for this so I tried to discard this error message by adding the following line into rsyslog.conf config file:
if ($programname == 'afpd') then ~
It's no longer logged but it looks like afpd is still logging a lot:
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock lost 13 messages from pid 35381 due to rate-limiting
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock begins to drop messages from pid 34080 due to rate-limiting
The 35381 and 34080 are afpd PIDs.
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the messages are no longer logged so I'm not quite sure what's going on there.
Questions:
- why messages are not logged when rate limiting is disabled
- how I can permanently discard logs from
afpddaemon
Edit: Wed Jul 2 14:41:34 BST 2014:
- System: CentOS release 6.4
- rsyslog-5.8.10-6.el6.x86_64
Default configuration, I just added this line if ($programname == 'afpd') then ~ to rsyslog.conf config file.
rsyslog
rsyslog package version, distro version, complete configuration?
– GioMac
Jul 2 '14 at 11:47
Please see my update fromWed Jul 2 14:41:34 BST 2014.
– HTF
Jul 2 '14 at 13:43
1
Cannot you instead configure afpd itself? E.g. change log level of afpd to LOG_SEVERE, as described in netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html (search for Logging options).
– Andrey Sapegin
Jul 3 '14 at 7:47
2
It seems to be working fine: You are dropping them with the "~" action. If you have rate limiting on, imuxsock (the input layer) is noting that apfd is generating a lot of logs that are then rate limited, before being dropped by the "~" action. If you then disable rate limiting, all of the messages are received by imuxsock, then hit the "~" action and are dropped.
– Craig Miskell
Dec 29 '14 at 8:34
add a comment |
I've got netatalk installed on the server and afpd is spamming system logs with the following error:
Jun 24 15:38:16 TEST afpd[21532]: sys_getextattr_size: error: Operation not supported
I'm not sure what's the actual root cause for this so I tried to discard this error message by adding the following line into rsyslog.conf config file:
if ($programname == 'afpd') then ~
It's no longer logged but it looks like afpd is still logging a lot:
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock lost 13 messages from pid 35381 due to rate-limiting
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock begins to drop messages from pid 34080 due to rate-limiting
The 35381 and 34080 are afpd PIDs.
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the messages are no longer logged so I'm not quite sure what's going on there.
Questions:
- why messages are not logged when rate limiting is disabled
- how I can permanently discard logs from
afpddaemon
Edit: Wed Jul 2 14:41:34 BST 2014:
- System: CentOS release 6.4
- rsyslog-5.8.10-6.el6.x86_64
Default configuration, I just added this line if ($programname == 'afpd') then ~ to rsyslog.conf config file.
rsyslog
I've got netatalk installed on the server and afpd is spamming system logs with the following error:
Jun 24 15:38:16 TEST afpd[21532]: sys_getextattr_size: error: Operation not supported
I'm not sure what's the actual root cause for this so I tried to discard this error message by adding the following line into rsyslog.conf config file:
if ($programname == 'afpd') then ~
It's no longer logged but it looks like afpd is still logging a lot:
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock lost 13 messages from pid 35381 due to rate-limiting
Jun 24 15:46:31 TEST rsyslogd-2177: imuxsock begins to drop messages from pid 34080 due to rate-limiting
The 35381 and 34080 are afpd PIDs.
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the messages are no longer logged so I'm not quite sure what's going on there.
Questions:
- why messages are not logged when rate limiting is disabled
- how I can permanently discard logs from
afpddaemon
Edit: Wed Jul 2 14:41:34 BST 2014:
- System: CentOS release 6.4
- rsyslog-5.8.10-6.el6.x86_64
Default configuration, I just added this line if ($programname == 'afpd') then ~ to rsyslog.conf config file.
rsyslog
rsyslog
edited Jul 2 '14 at 13:42
HTF
asked Jun 24 '14 at 15:04
HTFHTF
1,06493968
1,06493968
rsyslog package version, distro version, complete configuration?
– GioMac
Jul 2 '14 at 11:47
Please see my update fromWed Jul 2 14:41:34 BST 2014.
– HTF
Jul 2 '14 at 13:43
1
Cannot you instead configure afpd itself? E.g. change log level of afpd to LOG_SEVERE, as described in netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html (search for Logging options).
– Andrey Sapegin
Jul 3 '14 at 7:47
2
It seems to be working fine: You are dropping them with the "~" action. If you have rate limiting on, imuxsock (the input layer) is noting that apfd is generating a lot of logs that are then rate limited, before being dropped by the "~" action. If you then disable rate limiting, all of the messages are received by imuxsock, then hit the "~" action and are dropped.
– Craig Miskell
Dec 29 '14 at 8:34
add a comment |
rsyslog package version, distro version, complete configuration?
– GioMac
Jul 2 '14 at 11:47
Please see my update fromWed Jul 2 14:41:34 BST 2014.
– HTF
Jul 2 '14 at 13:43
1
Cannot you instead configure afpd itself? E.g. change log level of afpd to LOG_SEVERE, as described in netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html (search for Logging options).
– Andrey Sapegin
Jul 3 '14 at 7:47
2
It seems to be working fine: You are dropping them with the "~" action. If you have rate limiting on, imuxsock (the input layer) is noting that apfd is generating a lot of logs that are then rate limited, before being dropped by the "~" action. If you then disable rate limiting, all of the messages are received by imuxsock, then hit the "~" action and are dropped.
– Craig Miskell
Dec 29 '14 at 8:34
rsyslog package version, distro version, complete configuration?
– GioMac
Jul 2 '14 at 11:47
rsyslog package version, distro version, complete configuration?
– GioMac
Jul 2 '14 at 11:47
Please see my update from
Wed Jul 2 14:41:34 BST 2014.– HTF
Jul 2 '14 at 13:43
Please see my update from
Wed Jul 2 14:41:34 BST 2014.– HTF
Jul 2 '14 at 13:43
1
1
Cannot you instead configure afpd itself? E.g. change log level of afpd to LOG_SEVERE, as described in netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html (search for Logging options).
– Andrey Sapegin
Jul 3 '14 at 7:47
Cannot you instead configure afpd itself? E.g. change log level of afpd to LOG_SEVERE, as described in netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html (search for Logging options).
– Andrey Sapegin
Jul 3 '14 at 7:47
2
2
It seems to be working fine: You are dropping them with the "~" action. If you have rate limiting on, imuxsock (the input layer) is noting that apfd is generating a lot of logs that are then rate limited, before being dropped by the "~" action. If you then disable rate limiting, all of the messages are received by imuxsock, then hit the "~" action and are dropped.
– Craig Miskell
Dec 29 '14 at 8:34
It seems to be working fine: You are dropping them with the "~" action. If you have rate limiting on, imuxsock (the input layer) is noting that apfd is generating a lot of logs that are then rate limited, before being dropped by the "~" action. If you then disable rate limiting, all of the messages are received by imuxsock, then hit the "~" action and are dropped.
– Craig Miskell
Dec 29 '14 at 8:34
add a comment |
1 Answer
1
active
oldest
votes
may be offtopic, but
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the
messages are no longer logged so I'm not quite sure what's going on
there.
need more parameters to disable rsyslog limit
https://access.redhat.com/solutions/156863
$SystemLogRateLimitInterval 0
$SystemLogRateLimitBurst 0
$IMUXSockRateLimitBurst 0
$IMUXSockRateLimitInterval 0
$IMUXSockRateLimitSeverity 7
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f607563%2frsyslog-discarding-specific-messages-rate-limiting%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
may be offtopic, but
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the
messages are no longer logged so I'm not quite sure what's going on
there.
need more parameters to disable rsyslog limit
https://access.redhat.com/solutions/156863
$SystemLogRateLimitInterval 0
$SystemLogRateLimitBurst 0
$IMUXSockRateLimitBurst 0
$IMUXSockRateLimitInterval 0
$IMUXSockRateLimitSeverity 7
add a comment |
may be offtopic, but
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the
messages are no longer logged so I'm not quite sure what's going on
there.
need more parameters to disable rsyslog limit
https://access.redhat.com/solutions/156863
$SystemLogRateLimitInterval 0
$SystemLogRateLimitBurst 0
$IMUXSockRateLimitBurst 0
$IMUXSockRateLimitInterval 0
$IMUXSockRateLimitSeverity 7
add a comment |
may be offtopic, but
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the
messages are no longer logged so I'm not quite sure what's going on
there.
need more parameters to disable rsyslog limit
https://access.redhat.com/solutions/156863
$SystemLogRateLimitInterval 0
$SystemLogRateLimitBurst 0
$IMUXSockRateLimitBurst 0
$IMUXSockRateLimitInterval 0
$IMUXSockRateLimitSeverity 7
may be offtopic, but
When I disabled the rate limiting ($SystemLogRateLimitInterval 0) the
messages are no longer logged so I'm not quite sure what's going on
there.
need more parameters to disable rsyslog limit
https://access.redhat.com/solutions/156863
$SystemLogRateLimitInterval 0
$SystemLogRateLimitBurst 0
$IMUXSockRateLimitBurst 0
$IMUXSockRateLimitInterval 0
$IMUXSockRateLimitSeverity 7
answered Aug 1 '17 at 6:13
Oleg KorchaginOleg Korchagin
466
466
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f607563%2frsyslog-discarding-specific-messages-rate-limiting%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
rsyslog package version, distro version, complete configuration?
– GioMac
Jul 2 '14 at 11:47
Please see my update from
Wed Jul 2 14:41:34 BST 2014.– HTF
Jul 2 '14 at 13:43
1
Cannot you instead configure afpd itself? E.g. change log level of afpd to LOG_SEVERE, as described in netatalk.sourceforge.net/2.2/htmldocs/afpd.conf.5.html (search for Logging options).
– Andrey Sapegin
Jul 3 '14 at 7:47
2
It seems to be working fine: You are dropping them with the "~" action. If you have rate limiting on, imuxsock (the input layer) is noting that apfd is generating a lot of logs that are then rate limited, before being dropped by the "~" action. If you then disable rate limiting, all of the messages are received by imuxsock, then hit the "~" action and are dropped.
– Craig Miskell
Dec 29 '14 at 8:34