Hi,
It is, but runs in another namespace. So, yes, we do have Rocketchat metrics in a Grafana dashboard etc, but that’s not the point of this thread.
Nope. Metrics and Logs are different things(*). I am talking about logs here.
The only logs Rocketchat produces in a k8s pod goes to STDOUT, which I can look at using the kubectl logs command (as posted above) or using stern. That’s it. There’s no additional logfile inside the pod somewhere. One could ship these logs to Loki or Elasticsearch (what we do), but that doesn’t change anything. You can only ship what’s there.
So, I am pretty sure, that I am looking at 100% of the logs Rocketchat is producing. And it doesn’t contain any authentication logs. No successful authentications, no errors and no rate limit exceedings.
And my question is: is it possible to enable such kind of logs and if so - how? If it’s not possible, I’d like to know how others are debugging authentication problems.
best,
Tom
(*) just to be sure, I also looked at all the metrics Rocketchat is producing, because your insistence of metrics were suspicious to me. So, yes, there are certain pointers to events in the metrics, such as these:
rocketchat_rest_api{quantile="0.9",status="200",method="post",version="v1",entrypoint="method.call/rooms:get",user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Rocket.Chat/4.14.1 Chrome/144.0.7559.236 Electron/40.8.5 Safari/537.36"} 0.010015375600000001
but these are just statistics, just what metrics are for. No pointers towards authentication or even particular errors.