I am trying to fetch data between a range of time intervals from the log file. However, the complete data is not fetched for the end date.
Below is the command used:
sed -n '/26/Nov/2018/,/30/Nov/2018/ p' /path/file.log
The data I am having in the above log file is somewhat like:
192.168.0.123 - - [25/Nov/2018:13:24:59 +0530] "Data 1"
192.168.0.123 - - [26/Nov/2018:13:24:59 +0530] "Data 2"
192.168.0.123 - - [26/Nov/2018:13:25:09 +0530] "Data 3"
192.168.0.123 - - [27/Nov/2018:13:25:09 +0530] "Data 4"
192.168.0.123 - - [27/Nov/2018:13:25:11 +0530] "Data 5"
192.168.0.123 - - [27/Nov/2018:13:25:53 +0530] "Data 6"
192.168.0.123 - - [28/Nov/2018:13:25:53 +0530] "Data 7"
192.168.0.123 - - [29/Nov/2018:13:25:53 +0530] "Data 8"
192.168.0.123 - - [30/Nov/2018:13:25:53 +0530] "Data 9"
192.168.0.123 - - [30/Nov/2018:13:25:53 +0530] "Data 10"
192.168.0.123 - - [01/Dec/2018:13:25:53 +0530] "Data 11"
192.168.0.123 - - [01/Dec/2018:13:25:53 +0530] "Data 12"