- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
rest api to fetch the details uses who did not log in in ambari since last n days
- Labels:
-
Apache Ambari
Created ‎06-22-2018 05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
