Suppress duplicate warnings in log #203

Closed
opened 2025-11-20 05:07:53 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @itsalljustdata on GitHub (Oct 11, 2022).

One of my remote servers is having an outage (grrrr)...

Unfortunately, as a side-effect of this i'm getting craploads of duplicate (apart from time) warnings in the /var/log/netbird/client.log. Is there any way of suppressing these repeated messages?

time="2022-10-12T11:17:01+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:17:41+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:17:42+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:18:21+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:18:23+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:19:02+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:19:03+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"

I know setting the logLevel to "error" (although how do I achieve that?) would suppress them altogether, but a single instance of the message is of value - just not so many!

Originally created by @itsalljustdata on GitHub (Oct 11, 2022). One of my remote servers is having an outage (grrrr)... Unfortunately, as a side-effect of this i'm getting craploads of duplicate (apart from time) warnings in the /var/log/netbird/client.log. Is there any way of suppressing these repeated messages? ``` time="2022-10-12T11:17:01+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:17:41+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:17:42+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:18:21+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:18:23+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:19:02+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:19:03+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" ``` I know setting the logLevel to "error" (although how do I achieve that?) would suppress them altogether, but a single instance of the message is of value - just not so many!
Author
Owner

@mlsmaycon commented on GitHub (Jun 16, 2023):

since v0.21.3 we've reduced the number of logs

@mlsmaycon commented on GitHub (Jun 16, 2023): since [v0.21.3](https://github.com/netbirdio/netbird/releases/tag/v0.21.3) we've reduced the number of logs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#203