Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 查看tidb服务器登录日志发现异常,请问是否正常?
【TiDB Usage Environment】Production
【TiDB Version】5.4.1
【Encountered Issue】
By using the command tail -f /var/log/secure
to check the login user logs on the TiDB server, the following anomaly was found:
You used tiup during this period, right? Normal logs.
Hello, I often execute the following commands on the control machine: tiup cluster display tidb-prod
and tiup cluster check tidb-prod --cluster
.
Using the sudo command will record similar logs, and the tidb user needs sudo privileges to perform some operations.
Got it, understood! Thank you for the explanation, expert.
In the 5.4.0 environment, I tried restarting with tiup, and it indeed logs messages.
Normally, the TiDB cluster will check if the current user has sudo privileges when it restarts.
This is quite normal, nothing special.