01-02-2024 06:08 PM
Hi everyone,
I would greatly appreciate your help.
In a cisco switche Nexus 9K I would like to see in the log who made changes is some activities like add o delete users, for example “new user: name=ciscouser by admin” or “useradd by admin” it is possible to do?
For now I can see in the logs something like this (it doesn't appear who created or deleted the user):
2024 Jan 2 19:03:44 mxtulm01swocptor02 %AUTHPRIV-6-SYSTEM_MSG: new user: name=ciscouser, UID=2012, GID=504, home=/var/home/ciscouser, shell=/isan/bin/vsh_perm - useradd[32697]
2024 Jan 2 19:37:29 mxtulm01swocptor02 %AUTHPRIV-6-SYSTEM_MSG: delete user 'ciscouser' - userdel[8984]
My configuration is:
logging logfile messages 7 size 512000
logging server 10.10.10.1 7 use-vrf management_inband facility syslog
logging source-interface Vlan21
logging monitor 7
logging level user 6
logging level auth 6
logging level authpri 6
logging console 5
Solved! Go to Solution.
01-02-2024 09:10 PM
M.
01-02-2024 09:10 PM
M.
01-03-2024 10:28 AM
@marce1000Thanks for the recommendation, I checked the link that you shared me I was able to find a solution, the only thing that I did was change the accounting logs level:
now I can see who excute the instruction for any activity:
2024 Jan 3 09:50:30 tor02 %AAA-6-AAA_ACCOUNTING_MESSAGE: update:10.32.14.201@pts/2:admin:added user UserSIEM
2024 Jan 3 11:36:32 tor02 %AAA-6-AAA_ACCOUNTING_MESSAGE: update:10.32.1.177@pts/2:admin:deleted user UserSIEM
Regards,
01-03-2024 10:33 AM
Thanks alot for update us
Have a nice day
And happy new year
MHM
01-02-2024 10:59 PM
logging origin-id hostname <<- try add this and check
MHM
01-03-2024 10:20 AM
@MHM Cisco World , I tried with these option but only I could see hostname in all events, I applied the solutions that @marce1000 recomeded me and can solve it. Thanks for you help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide