How to record the log when access admin page

I want to record the ip(or mac) who try to login the admin page
what should I do

it is logged by default

logread -e luci | grep ' login '

Thu Jun 24 02:27:30 2021 user.info : luci: failed login on / for root from 10.2.3.155
Thu Jun 24 02:27:37 2021 user.info : luci: accepted login on / for root from 10.2.3.155

edit: is this question the same as

might be some tips there?

5 Likes

Thx a lot!!

I use logread -e luci | grep ' login ' but get nothing,

I think It may be lede firmware's problem,

Can I find the login part and add nixio.syslog in luci?

doubt it... lede is legacy... if your running something unusual... you should either switch to something common... or state your setup more clearly....

2 Likes

I got it, thanks for your answer!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.