# Discourse 认证日志

**URL:** https://meta.discourse.org/t/discourse-authentication-log/119836
**Category:** Support
**Created:** [2019年六月9日 09:16 UTC](https://meta.discourse.org/t/discourse-authentication-log/119836 "2019-06-09T09:16:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hosna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hosna/32/99969_2.png) [@hosna](https://meta.discourse.org/u/hosna)
#### Post date: [2019年六月9日 09:16 UTC](https://meta.discourse.org/t/discourse-authentication-log/119836/1 "2019-06-09T09:16:36Z")

</div>

I want to see some of the failed login attempts. where can I find the log?

---

<div class="post-metadata">

### Author: ![jieiku](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jieiku/32/201699_2.png) [@jieiku](https://meta.discourse.org/u/jieiku)
#### Post date: [2020年十一月30日 17:21 UTC](https://meta.discourse.org/t/discourse-authentication-log/119836/2 "2020-11-30T17:21:17Z")

</div>

我目前也在广泛搜索 Google，查找无效或失败登录尝试的日志（这也是我找到这里的原因）。如果你已经找到解决方法，请告诉我。

谢谢。

编辑：我想到一个办法，前往 Google 搜索“我的 IP 地址”。接着故意使用错误密码尝试登录，然后在系统中搜索该 IP 地址：

`sudo grep -i --binary-files=without-match --exclude-dir={sys,proc,run} --include=\* -rnw '/' -e "111.222.333.444"`

但这样返回的只有我的 Nginx 访问日志，无效登录尝试似乎并未被记录。我需要查看是否有相关的设置、模块或插件可以启用此类信息的日志记录。
