Support Questions

Find answers, ask questions, and share your expertise
Announcements
Now Live: Explore expert insights and technical deep dives on the new Cloudera Community BlogsRead the Announcement

rest api to fetch the details uses who did not log in in ambari since last n days

avatar

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

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Anurag Mishra

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 

.

View solution in original post

1 REPLY 1

avatar
Master Mentor

@Anurag Mishra

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 

.