Skip to main content
Topic: Way too many log entries from connmand in s6 log (Read 278 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Way too many log entries from connmand in s6 log

Hi guys, how can I tell either connman or s6-log to log less? The log file is already 9200 lines long after only 6 minutes!!
The bulk of entries look like this:
Code: [Select]
2026-01-10 15:20:35.066869089  connmand[636]: wlan0 {TX} 16696 packets 2136090 bytes
2026-01-10 15:20:35.066870600  connmand[636]: wlan0 {newlink} index 3 address E8:2A:EA:5B:4F:14 mtu 1500
2026-01-10 15:20:35.066871883  connmand[636]: wlan0 {newlink} index 3 operstate 6 <UP>
2026-01-10 15:20:35.066905109  connmand[636]: wlan0 {RX} 2061 packets 502976 bytes
2026-01-10 15:20:35.066907124  connmand[636]: wlan0 {TX} 16696 packets 2136090 bytes
2026-01-10 15:20:35.066912402  connmand[636]: wlan0 {newlink} index 3 address E8:2A:EA:5B:4F:14 mtu 1500
2026-01-10 15:20:35.066916851  connmand[636]: wlan0 {newlink} index 3 operstate 6 <UP>
2026-01-10 15:20:35.081052844  connmand[636]: wlan0 {RX} 2061 packets 502976 bytes
2026-01-10 15:20:35.081057013  connmand[636]: wlan0 {TX} 16697 packets 2136208 bytes
2026-01-10 15:20:35.081058479  connmand[636]: wlan0 {newlink} index 3 address E8:2A:EA:5B:4F:14 mtu 1500
2026-01-10 15:20:35.081060038  connmand[636]: wlan0 {newlink} index 3 operstate 6 <UP>
2026-01-10 15:20:36.108103457  connmand[636]: wlan0 {RX} 2069 packets 504312 bytes
2026-01-10 15:20:36.108108632  connmand[636]: wlan0 {TX} 16708 packets 2137398 bytes
2026-01-10 15:20:36.108110340  connmand[636]: wlan0 {update} flags 102403 <UP,LOWER_UP>
2026-01-10 15:20:36.108121888  connmand[636]: wlan0 {newlink} index 3 address E8:2A:EA:5B:4F:14 mtu 1500
2026-01-10 15:20:36.108123508  connmand[636]: wlan0 {newlink} index 3 operstate 5 <DORMANT>
2026-01-10 15:20:36.108139585  connmand[636]: wlan0 {RX} 2069 packets 504312 bytes

I'm really not interested in these kind of log entries, so how can I get rid of them?

Re: Way too many log entries from connmand in s6 log

Reply #1
Go to your services' file under /etc/s6/config and create/edit a line starting with DIRECTIVES. Take the default n3 s2000000 T if it's not present, and use a word (actually a regular expression) prefixed by - in order to skip it. For instance.

Code: [Select]
/etc/s6/config/connman.conf
===================
DIRECTIVES="n3 s2000000 T -wlan0"

or (actually using regular expressions - skips lines containing {RX}, {TX} and {newlink} - backslashes needed because { } are special in regular expressions):

Code: [Select]
/etc/s6/config/connman.conf
===================
DIRECTIVES="n3 s2000000 T -\\{(RX|TX|newlink)\\}"

Read Logging Script Syntax on the official docos for more.



I'd try to investigate what's causing those issues, or at the very least try to make connman shut up, but couldn't find anything skimming the manual pages.

Re: Way too many log entries from connmand in s6 log

Reply #2
I don't use connman but the service script just simply runs it without forking. We don't even enable the debug option so in theory it's not supposed to be spamming. Something sounds weird if it's writing that much so quickly.

Re: Way too many log entries from connmand in s6 log

Reply #3
I guess OP's wireless network is somehow unstable failing and Connman is constantly disconnecting and reconnecting, given how many "newlinks" are generated every second.

Re: Way too many log entries from connmand in s6 log

Reply #4
I guess OP's wireless network is somehow unstable failing and Connman is constantly disconnecting and reconnecting, given how many "newlinks" are generated every second.

Well, then I'll keep the log settings and investigate the underlying issue. Thanks for your replies so far!