[GH-ISSUE #1052] Where are the chat logs saved? #515

Closed
opened 2026-04-12 10:12:38 -05:00 by GiteaMirror · 9 comments
Owner

Originally created by @621625 on GitHub (Nov 9, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1052

Hi,

I'm Mr. Atom, a very friendly guy.

Where are the chat logs saved? I can't find the directory.

Originally created by @621625 on GitHub (Nov 9, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1052 Hi, I'm Mr. Atom, a very friendly guy. Where are the chat logs saved? I can't find the directory.
Author
Owner

@pdevine commented on GitHub (Nov 9, 2023):

Hello Mr. Atom,

We don't save the chat logs per se, however, you can find the history of the things you sent in ~/.ollama/history.

<!-- gh-comment-id:1803077182 --> @pdevine commented on GitHub (Nov 9, 2023): Hello Mr. Atom, We don't save the chat logs _per se_, however, you can find the history of the things you sent in `~/.ollama/history`.
Author
Owner

@jmorganca commented on GitHub (Nov 30, 2023):

Hi @bitcoinmeetups as @pdevine no logs are saved – will close this for now however feel free to re-open if needed

<!-- gh-comment-id:1833063950 --> @jmorganca commented on GitHub (Nov 30, 2023): Hi @bitcoinmeetups as @pdevine no logs are saved – will close this for now however feel free to re-open if needed
Author
Owner

@Mingzefei commented on GitHub (Mar 17, 2024):

Hello,

I have successfully deployed Ollama on a server running Windows 10 and have made the API available to other users within the local network. However, I've noticed that the chat records in the .ollama/history directory only include interactions made locally through the command line and do not contain any records of the chats initiated by other users over the network.

I'm curious to know whether the local server does not record network-initiated chat interactions at all, or if these records are stored in a different location that I'm not aware of.

<!-- gh-comment-id:2002259258 --> @Mingzefei commented on GitHub (Mar 17, 2024): Hello, I have successfully deployed Ollama on a server running Windows 10 and have made the API available to other users within the local network. However, I've noticed that the chat records in the .ollama/history directory only include interactions made locally through the command line and do not contain any records of the chats initiated by other users over the network. I'm curious to know whether the local server does not record network-initiated chat interactions at all, or if these records are stored in a different location that I'm not aware of.
Author
Owner

@pdevine commented on GitHub (Mar 17, 2024):

.ollama/history is the readline history for the client so you can use the up/down arrow when chatting. It's only saved on the client machine, not on the central server.

<!-- gh-comment-id:2002529463 --> @pdevine commented on GitHub (Mar 17, 2024): `.ollama/history` is the readline history for the client so you can use the up/down arrow when chatting. It's only saved on the client machine, not on the central server.
Author
Owner

@YashasviMantha commented on GitHub (Jan 5, 2025):

Same question as @Mingzefei, is it possible to see the history that different tools accessing Ollama over the network (like openweb-ui) send on the Ollama server (in my case docker container)? Or is it safe to assume this history is NOT saved anywhere?

<!-- gh-comment-id:2571647127 --> @YashasviMantha commented on GitHub (Jan 5, 2025): Same question as @Mingzefei, is it possible to see the history that different tools accessing Ollama over the network (like openweb-ui) send on the Ollama server (in my case docker container)? Or is it safe to assume this history is NOT saved anywhere?
Author
Owner

@pdevine commented on GitHub (Jan 5, 2025):

@YashasviMantha unless you had debug turned on, it's not saved anywhere. If you do have debug turned on the user prompts will be indirectly stored in the ollama server logs. You can find out how to view the logs in the troubleshooting guide and in the FAQ

<!-- gh-comment-id:2571719321 --> @pdevine commented on GitHub (Jan 5, 2025): @YashasviMantha unless you had debug turned on, it's not saved anywhere. If you do have debug turned on the user prompts will be indirectly stored in the ollama server logs. You can find out how to view the logs in the [troubleshooting guide](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md) and in the [FAQ](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-view-the-logs)
Author
Owner

@vavanade commented on GitHub (May 23, 2025):

@YashasviMantha If you do have debug turned on the user prompts will be indirectly stored in the ollama server logs.

What do you mean by indirectly stored? I don't see any prompts in the server.log file (on Windows). I see DEBUG level messages there though. Do they contain some ID that references the user prompt which is stored somewhere else?

<!-- gh-comment-id:2903804532 --> @vavanade commented on GitHub (May 23, 2025): > [@YashasviMantha](https://github.com/YashasviMantha) If you do have debug turned on the user prompts will be indirectly stored in the ollama server logs. What do you mean by indirectly stored? I don't see any prompts in the `server.log` file (on Windows). I see DEBUG level messages there though. Do they contain some ID that references the user prompt which is stored somewhere else?
Author
Owner

@Daniel451 commented on GitHub (May 28, 2025):

Would be interesting to know when exactly, where, and under which circumstances chats (human and/or ai messages) are stored. For chatbots using personal data, for example, GDPR restrictions are very strict and even for local OnPremise deployments within closed networks it would be preferable to have zero traces of anything left (we have some UI where users can explicitly save a chat if they want to but default - even for logging - should be no data saved).

<!-- gh-comment-id:2916687089 --> @Daniel451 commented on GitHub (May 28, 2025): Would be interesting to know when exactly, where, and under which circumstances chats (human and/or ai messages) are stored. For chatbots using personal data, for example, GDPR restrictions are very strict and even for local OnPremise deployments within closed networks it would be preferable to have zero traces of anything left (we have some UI where users can explicitly save a chat if they want to but default - even for logging - should be no data saved).
Author
Owner

@BananaAcid commented on GitHub (Jul 20, 2025):

.ollama/history is the readline history for the client so you can use the up/down arrow when chatting. It's only saved on the client machine, not on the central server.

1️⃣ ... I suspect this is for the CLI client only?

2️⃣ Can this be disabled? (GDPR)

3️⃣ (And why is this not stored only in the CLI clients memory?)

<!-- gh-comment-id:3094670453 --> @BananaAcid commented on GitHub (Jul 20, 2025): > `.ollama/history` is the readline history for the client so you can use the up/down arrow when chatting. It's only saved on the client machine, not on the central server. 1️⃣ ... I suspect this is for the CLI client only? 2️⃣ Can this be disabled? (GDPR) 3️⃣ (And why is this not stored only in the CLI clients memory?)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#515