Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[MX] Throttling syslog messages



Article ID: KB35766 KB Last Updated: 06 May 2020Version: 1.0

Some repetitive log messages can be generated too often and there may be a need to throttle such messages but not filter them out completely.

This article explains how syslog messages can be throttled.



Some syslog messages are generated based on events coming from CPE devices. For example, a CPE device can behave incorrectly while sending packets, which may cause a syslog message to be generated. Such syslog messages can fill up the messages file on the router.

One possible solution for this is to filter such logs completely but in this case, the triggering condition such as the misbehaving CPE can be missed.



To throttle repetitive syslog messages, use the following configuration:

event-options {
    policy syslogThrottle1 {
        events system;
        within 60 {
            trigger after 1;
        attributes-match {
            system.message matches "Part of the message which is present in all entries";
        then {

With this configuration, there will be only one syslog message per minute, whereas the others will be ignored.

The configuration can be tested from shell (start shell) with the logger utility:

logger "example syslog message"


Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search