Filtering log files

Job ID: 32028028

Budget: $10 – $30 USD

The aim of the job is to filter information on 1 log file and copy it to another file.
The second file should contain users that logged in and logged out the system including the time of login & logout, and also in this file should be included only logs from one day before. For example, log file contains info from 5th and 6th of November, while in second file i only need info for 5th of November.
The rows should be like:
Time - Action (login or logout) - userid
and then in the end, information should be sorted based on userid.

An example of the log file is attached.
Related categories: Python Linux Shell Script UNIX Bash Scripting