Created 06-22-2018 05:40 AM
Is there some rest api by using that I can fetch list of users who has not logged in ambari since some days let's say n number of days ?
Thanks
Created 06-22-2018 05:58 AM
Ambari does not maintain this information. Which means thewre is no database/table/column where we can see the information about last logged in Time for a user. Hence there is no API available for the same.
However you can parse the "ambari-audit.log" to extract similar kind of info
# grep 'User login' /var/log/ambari-server/ambari-audit.log
Created 06-22-2018 05:58 AM
Ambari does not maintain this information. Which means thewre is no database/table/column where we can see the information about last logged in Time for a user. Hence there is no API available for the same.
However you can parse the "ambari-audit.log" to extract similar kind of info
# grep 'User login' /var/log/ambari-server/ambari-audit.log