# user\_auth\_token\_logs를 정리해야 하나요?

**URL:** <https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397>\
**Category:** Bug\
**Created:** [9월 13, 2024, 5:30오후 UTC](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397 "2024-09-13T17:30:22Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)\
**Post date:** [9월 16, 2024, 8:15오후 UTC](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397/8 "2024-09-16T20:15:39Z")

</div>

> [@pmusaraj](#):
>
> 특정 시간 경과 후 전역 정리(clean up)를 수행하는 것에 동의합니다. @osama (위에서 링크된 커밋의 저자이므로) 일정 시간 후 이 모든 로그를 정리할 수 있다고 생각하시나요 (그렇다면 얼마나 후에 정리할까요)? 의심스러운 로그인 탐지를 위해 일부 로그는 유지해야 할 것 같습니다.

네, 대부분의 로그는 정리할 수 있다고 생각합니다. 하지만 일부는 유지해야 합니다. 구체적으로, action이 `suspicious`, `generate`, 또는 `rotate`인 기록은 의심스러운 로그인 탐지 및 관련 보고서 생성에 사용되므로 유지해야 한다고 생각합니다.

> <https://github.com/discourse/discourse/blob/501f07ab1fceafcfa56bbfc074951d03d7d30d22/app/models/concerns/reports/suspicious_logins.rb#L38>

> <https://github.com/discourse/discourse/blob/501f07ab1fceafcfa56bbfc074951d03d7d30d22/app/models/user_auth_token.rb#L61>

---

_[View the full topic](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397)._
