Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

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

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

Super 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

Super 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 

.