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