I have many nginx access log files and i want to parse these files between two dates.
For example i want to parse the log files between 15/Sep/2020 until 15/Oct/2020 and i use this command:
zcat /var/log/nginx/mywebsite.access.log.*.gz | awk '$4 >= "[15/Sep/2020" && $4 < "[15/Oct/2020"'
or this command:
zcat /var/log/nginx/mywebsite.access.log.*.gz | sed -n -e '/15\/Sep\/2020/,/15\/Oct\/2020/p'
but the result is not between two dates.
Please help me for this.
Thanks