You can configure log suppression with a start-log low value number.
https://www.juniper.net/documentation/us/en/software/junos/idp-policy/topics/ref/statement/security-edit-suppression.html
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home------------------------------
Original Message:
Sent: 07-28-2023 06:59
From: TAYMAZ MOHSENZADEH
Subject: log reduction or suppression on Junos
Hello.
by suppressing all of the log messages that matches certain condition, we will no longer see any of that log messages. It might be good or no depending on the goal. what I want is logging just, let's say, one out of 10 or 20 logs from the repeating same log messages, so while we know what happens, in the same time prevent additional non-necessary repetitive log messages to put a load on device or make log files grow in size. I think there is such solution is Cisco devices in which we can determine log frequencies.
regards.
------------------------------
TAYMAZ MOHSENZADEH
Original Message:
Sent: 07-28-2023 06:37
From: spuluka
Subject: log reduction or suppression on Junos
You can suppress particular messages with the match condition in the configuration.
https://supportportal.juniper.net/s/article/Junos-Platform-Example-How-to-prevent-certain-syslog-messages-from-being-written-to-the-log-file
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home
Original Message:
Sent: 07-28-2023 04:05
From: TAYMAZ MOHSENZADEH
Subject: log reduction or suppression on Junos
Hello.
Is there any way to suppress the amount of log messages generated for the same event? we had a situation in which a device was under heavy load because it generated lots of the same log messages over and over again for the same event (in our case, for incompatible SFP model). that device was nearly unresponsive for SNMP pull request due to the load.
------------------------------
TAYMAZ MOHSENZADEH
------------------------------