How can I delete Dify Logs to make the system faster? #7993
-
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 commentsI am using Self-hosted Docker solution to host dify. 3. Can you help us with this feature?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
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.
-
I'm experiencing the same issue. I use the
I tried using the We can log in to Dify's Postgres using the credentials defined in the If there are any cleaner solutions, I would really like to know them. |
Beta Was this translation helpful? Give feedback.
-
same question |
Beta Was this translation helpful? Give feedback.
Thanks for the answer.
I deleted this tables but that wasn't enough. I got into some error that I couldn't even see the logs on the front-end.
So I deleted this six tables. And the program is successfully working: