[GH-ISSUE #3197] Completely disable logging on server with env variable #48482

Open
opened 2026-04-28 08:37:58 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Xpl0itU on GitHub (Mar 17, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3197

What are you trying to do?

For maximum privacy, it would be nice to be able to disable logging completely

How should we solve this?

Setting an env variable that sets the logging level to none, so absolutely no logs are being outputted

What is the impact of not solving this?

None, it’s just a nice addition for privacy reasons in case ollama is being stored in a shared server

Anything else?

No response

Originally created by @Xpl0itU on GitHub (Mar 17, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/3197 ### What are you trying to do? For maximum privacy, it would be nice to be able to disable logging completely ### How should we solve this? Setting an env variable that sets the logging level to none, so absolutely no logs are being outputted ### What is the impact of not solving this? None, it’s just a nice addition for privacy reasons in case ollama is being stored in a shared server ### Anything else? _No response_
GiteaMirror added the feature request label 2026-04-28 08:37:59 -05:00
Author
Owner

@0rzech commented on GitHub (Feb 28, 2025):

I think the best way is to be able to set a specific log level through environment variable with "no logs" as just one of available levels.

In the meantime, I've set StandardOutput=null [1] in my ollama's systemd service file. My reason was simply that ollama terribly spams journald with loads of info I don't care about. It's also possible to set StandardError=null [2], btw.

[1] https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#StandardOutput=
[2] https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#StandardError=

<!-- gh-comment-id:2691325971 --> @0rzech commented on GitHub (Feb 28, 2025): I think the best way is to be able to set a specific log level through environment variable with "no logs" as just one of available levels. In the meantime, I've set `StandardOutput=null` [1] in my ollama's systemd service file. My reason was simply that ollama terribly spams journald with loads of info I don't care about. It's also possible to set `StandardError=null` [2], btw. [1] https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#StandardOutput= [2] https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#StandardError=
Author
Owner

@fcorneli commented on GitHub (Feb 6, 2026):

I'm also looking for a way to configure the ollama logging to only log warnings and errors.
Anyone managed to configure this?

<!-- gh-comment-id:3859931063 --> @fcorneli commented on GitHub (Feb 6, 2026): I'm also looking for a way to configure the ollama logging to only log warnings and errors. Anyone managed to configure this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#48482