I want to know the details of user logins of my Gnu/Linux servers (RHEL7 and Ubuntu 16.04) e.g. who, from what IP, when. So what is the location of the log files, from which I can find the list of the users and details of the last 30 days.
I also want to redirect these logs on another location (ftp://IP/logindetails). So please guide me, How can I make it possible?