How can I delete Dify Logs to make the system faster? #7993
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
I have the same situation as you. My single workflow has millions of records and runs very slowly, but I can't find any entry to delete them. |
Beta Was this translation helpful? Give feedback.
-
Self Checks
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?
Beta Was this translation helpful? Give feedback.
All reactions