List of last logged in users

Hi, do you know, if is there any way how to get a list of users who have been logged in last month or so with their IP address? Right now, not for the future.

Thanks a lot for your advice
Karolina