How can I delete Dify Logs to make the system faster? #5280

Closed
opened 2026-02-21 18:10:15 -05:00 by yindo · 1 comment
Owner

Originally created by @pourmand1376 on GitHub (Aug 28, 2024).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

We are actually using Dify in our system and It is working very good.

The only problem is that Dify tends to get really slow after logs are gathered. So, my question is, How can I delete Dify Workflow Run Logs without affecting anything else?

2. Additional context or comments

I am using Self-hosted Docker solution to host dify.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @pourmand1376 on GitHub (Aug 28, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. We are actually using Dify in our system and It is working very good. The only problem is that Dify tends to get really slow after logs are gathered. So, my question is, How can I delete Dify Workflow Run Logs without affecting anything else? ### 2. Additional context or comments I am using Self-hosted Docker solution to host dify. ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:10:15 -05:00
yindo closed this issue 2026-02-21 18:10:15 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 28, 2024):

I found a similar unsolved discussion that might be relevant to your question: How to discard logs [1].

Regarding your question on how to delete Dify logs to make the system faster, it's important to note that deleting logs can impact the ability to observe and mark the application's interactions. Logs are used to record all interaction processes and provide a visual operational experience for prompt engineers and LLM operators. Without these logs, it would be challenging to track user interactions, evaluate AI outputs, and make necessary improvements based on user and operator feedback. This could hinder the model's fine-tuning process and overall performance improvements [2][3].

Unfortunately, I wasn't able to find specific commands, scripts, or configuration options provided by Dify for clearing or managing logs, including log rotation or automated log management, within the repository. You might need to implement your own log management solution or look into Docker's log management capabilities to handle this.

If you decide to proceed with deleting logs, ensure you have a backup and understand the potential impact on your application's performance and functionality.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Aug 28, 2024): <!-- Answer --> I found a similar unsolved discussion that might be relevant to your question: [How to discard logs](https://github.com/langgenius/dify/discussions/6816) <sup>[[1]](https://github.com/langgenius/dify/discussions/6816)</sup>. Regarding your question on how to delete Dify logs to make the system faster, it's important to note that deleting logs can impact the ability to observe and mark the application's interactions. Logs are used to record all interaction processes and provide a visual operational experience for prompt engineers and LLM operators. Without these logs, it would be challenging to track user interactions, evaluate AI outputs, and make necessary improvements based on user and operator feedback. This could hinder the model's fine-tuning process and overall performance improvements <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/jp/guides/biao-zhu/logs.md)</sup><sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/zh_CN/guides/biao-zhu/logs.md)</sup>. Unfortunately, I wasn't able to find specific commands, scripts, or configuration options provided by Dify for clearing or managing logs, including log rotation or automated log management, within the repository. You might need to implement your own log management solution or look into Docker's log management capabilities to handle this. If you decide to proceed with deleting logs, ensure you have a backup and understand the potential impact on your application's performance and functionality. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5280