dify icon indicating copy to clipboard operation
dify copied to clipboard

Enhancing dify performance with automated log cleanup and retention

Open hiwuye opened this issue 9 months ago • 4 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [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.

After Dify has been running for a period of time, the application logs and user logs become increasingly large, severely impacting system stability and performance. We recommend that the community enhance automated log management features, such as implementing automatic cleanup and retaining data for T days.

2. Additional context or comments

Image

Image

3. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

hiwuye avatar Mar 20 '25 04:03 hiwuye

I also encountered this issue and hope that the community edition can add this automatic log cleanup feature. Currently, the logs seem to accumulate without any limits. I tried deleting the relevant databases to remove the junk logs myself, but the results were not ideal.

yangkai666666 avatar Mar 27 '25 14:03 yangkai666666

Hi, @hiwuye. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You raised a concern about the need for automated log cleanup and retention features in Dify.
  • User yangkai666666 supported this suggestion, sharing similar experiences with log accumulation.
  • Both users advocate for automatic log management in the community edition to improve system stability and performance.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Apr 27 '25 16:04 dosubot[bot]

We recommend that the community enhance automated log management features

hiwuye avatar Apr 27 '25 23:04 hiwuye

@crazywoola, the user @hiwuye has indicated that the issue regarding automated log management features is still relevant and recommends community enhancement. Could you please assist them with this matter?

dosubot[bot] avatar Apr 27 '25 23:04 dosubot[bot]

Check this file. We have several house-keeping tasks

https://github.com/langgenius/dify/blob/17fe62cf91a56f578aeff455781f933853456c02/api/commands.py

crazywoola avatar Jul 10 '25 01:07 crazywoola