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;








2















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 afpd daemon

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.










share|improve this question
























  • 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

















2















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 afpd daemon

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.










share|improve this question
























  • 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













2












2








2








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 afpd daemon

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.










share|improve this question
















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 afpd daemon

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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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

















  • 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
















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










1 Answer
1






active

oldest

votes


















0














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





share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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





    share|improve this answer



























      0














      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





      share|improve this answer

























        0












        0








        0







        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





        share|improve this answer













        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






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 1 '17 at 6:13









        Oleg KorchaginOleg Korchagin

        466




        466



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos