Ollama Server Logs: Where to Find Them on Every OS

Quick fix
macOS:cat ~/.ollama/logs/server.log. Linux (systemd install): journalctl -u ollama --no-pager --follow. Windows: explorer %LOCALAPPDATA%\Ollama and open server.log. Docker: docker logs -f <container-name>. For more detail, restart the server with OLLAMA_DEBUG=1.On this page
When a model will not load, runs on the CPU instead of the GPU, or the API returns errors, the Ollama server log is the first place to look. This guide lists where the log lives on each platform, how to follow it live, and how to turn on debug logging.
Finding Ollama Logs on macOS
The macOS app writes the server log to your home directory. Open a terminal and run:
cat ~/.ollama/logs/server.logTo watch new entries as they are written, use tail -f:
tail -f ~/.ollama/logs/server.logAccessing Ollama Logs on Linux Systems
The official Linux install script creates a systemd service named ollama, so the server logs go to the journal:
journalctl -u ollama --no-pagerTo filter logs by time or follow new entries, use these options:
# View only recent logs
journalctl -u ollama --since "1 hour ago"
# Follow new log entries
journalctl -u ollama -fIf you start the server yourself with ollama serve instead of the service, the log is printed to that terminal (stderr). Redirect it if you want a file: ollama serve 2> ollama.log.
Viewing Ollama Container Logs
In a container, Ollama logs to standard output and standard error. To access them:
- First identify your container:
docker ps | grep ollama- Then view the logs with:
docker logs <container-name>- For continuous monitoring:
docker logs --follow <container-name>The same commands work with Podman (podman logs). On Kubernetes, use kubectl logs -f deploy/ollama -n <namespace> (adjust the name to your deployment).
Finding Ollama Logs on Windows
On Windows the logs live in your local application data folder:
%LOCALAPPDATA%\Ollama: log files (server.logfor the server,app.logfor the tray app)%HOMEPATH%\.ollama: models and configuration
From Command Prompt:
explorer %LOCALAPPDATA%\Ollama
type %LOCALAPPDATA%\Ollama\server.logFrom PowerShell, environment variables use a different syntax, and Get-Content -Wait works like tail -f:
Get-Content "$env:LOCALAPPDATA\Ollama\server.log" -Tail 50 -WaitThe current log is server.log; older logs are rotated to server-1.log, server-2.log and so on.
Enabling Detailed Debug Logging
For deeper troubleshooting, set OLLAMA_DEBUG=1 before the server starts.
On macOS
Quit the Ollama app from the menu bar first, then run the server in a terminal:
OLLAMA_DEBUG=1 ollama serveOn Linux (systemd service)
Add the variable to the service with an override, then restart it:
sudo systemctl edit ollama
# In the editor, add:
# [Service]
# Environment="OLLAMA_DEBUG=1"
sudo systemctl daemon-reload
sudo systemctl restart ollama
journalctl -u ollama -fOn Windows
Quit Ollama from the system tray first, then in PowerShell:
$env:OLLAMA_DEBUG="1"
ollama serveIn Containers
docker run -d -e OLLAMA_DEBUG=1 -p 11434:11434 --name ollama ollama/ollamaInterpreting Common Log Messages
Ollama writes structured lines in the form time=... level=INFO source=... msg="...". Useful things to search for:
level=WARNandlevel=ERROR: problems worth reading first- Lines mentioning
inference computeorlibrary=cuda/library=rocm: which GPU, if any, Ollama detected at startup offloadandlayers: how many model layers were placed on the GPU; few or zero layers on the GPU explains slow responsesout of memory: the model, or its context size, does not fit in the available RAM or VRAM
To filter quickly on Linux:
journalctl -u ollama --since today | grep -E "level=(WARN|ERROR)"FAQ
Why is there no server.log on Linux?
Because the systemd service sends output to the journal instead of a file. Use journalctl -u ollama. The ~/.ollama/logs directory is used by the macOS app.
How do I see why Ollama is using the CPU instead of the GPU?
Restart the server with OLLAMA_DEBUG=1 and read the startup lines about GPU discovery. Missing drivers, an unsupported GPU, or a container started without GPU access (for Docker, --gpus=all) are the usual causes.
How do I keep the log from growing forever?
On Linux the journal is size limited by journald settings (SystemMaxUse in /etc/systemd/journald.conf). In Docker, set a log driver limit such as --log-opt max-size=10m --log-opt max-file=3.
Where are Ollama models stored, if not next to the logs?
In ~/.ollama/models on macOS and Windows (%HOMEPATH%\.ollama\models), and in /usr/share/ollama/.ollama/models for the Linux systemd service. Set OLLAMA_MODELS to move them.