Is there a way to get a report for example 1 Jan 2017 till 30 Jan 2017
between 18:00 till 06:00 am the next morning

This is for user successful login sand failed logins

We want to see if users have logged in during the night

An example script will be great.