[GH-ISSUE #1608] How to disable server stats in the logs? #1128

Closed
opened 2026-05-07 00:30:27 +02:00 by BreizhHardware · 2 comments

Originally created by @wsw70 on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1608

Question

I have a lot of these lines in my logs (actually only them AFAICT):

 2026/02/15 21:13:47 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=2, messages_published=2, subscribers=6, tag=manager, topics_active=7, users=2, visitors=1)

They are not really useful because:

  • this is a one-person installation so I have a good idea of what comes in and the visitors
  • I do not watch them
  • I will miss any other logs because they are overwhelming

Is there a way to disable them?

I saw that there is the manager-interval setting

Interval in which the manager prunes old messages, deletes topics and prints the stats.

From the description, it looks like however that it would not be a good idea to set it to 10 years or something (if it would stop the logs at all), given that there are other functionalities it drives.

Originally created by @wsw70 on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1608 <!-- Before you submit, consider asking on Discord/Matrix instead. You'll usually get an answer sooner, and there are more people there to help! - Discord: https://discord.gg/cT7ECsZj9w - Matrix: https://matrix.to/#/#ntfy:matrix.org / https://matrix.to/#/#ntfy-space:matrix.org --> :question: **Question** I have a lot of these lines in my logs (actually only them AFAICT): ``` 2026/02/15 21:13:47 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=2, messages_published=2, subscribers=6, tag=manager, topics_active=7, users=2, visitors=1) ``` They are not really useful because: - this is a one-person installation so I have a good idea of what comes in and the visitors - I do not watch them - I will miss any other logs because they are overwhelming Is there a way to disable them? I saw that there is the `manager-interval` setting > Interval in which the manager prunes old messages, deletes topics and prints the stats. From the description, it looks like however that it would not be a good idea to set it to 10 years or something (if it would stop the logs at all), given that there are other functionalities it drives.
BreizhHardware 2026-05-07 00:30:27 +02:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@binwiederhier commented on GitHub (Feb 15, 2026):

There is no official way to disable them. You can probably look at log-level-overrides to hack something, e.g. this (untested):

log-level-overrides:
- emails_received -> trace
<!-- gh-comment-id:3905156346 --> @binwiederhier commented on GitHub (Feb 15, 2026): There is no official way to disable them. You can probably look at `log-level-overrides` to hack something, e.g. this (untested): ``` log-level-overrides: - emails_received -> trace ```
Author
Owner

@Mannshoch commented on GitHub (Mar 31, 2026):

I would also like to reduce this.
My Ntfy process around 1 Message a day But in the Log I have an entry every Minute.

<!-- gh-comment-id:4160034402 --> @Mannshoch commented on GitHub (Mar 31, 2026): I would also like to reduce this. My Ntfy process around 1 Message a day But in the Log I have an entry every Minute.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1128
No description provided.