Article 5JVB1 Filtering logs stored in gz archive based on time range

Filtering logs stored in gz archive based on time range

by
alexsec
from LinuxQuestions.org on (#5JVB1)
Dear Linux friends,

Logrotate is conigured to archive logs after 7 days. So for example mail.log.8.gz from Apil 18 contains logs from 11th to 18th April. What I need to do is to filter logs from 23 April 15:00 to 2 June and write those logs to file. Is there a smart way to this like script

Tnxlatest?d=yIl2AUoC8zA latest?i=lzzuuTBAqDc:FCKGJyUHA-8:F7zBnMy latest?i=lzzuuTBAqDc:FCKGJyUHA-8:V_sGLiP latest?d=qj6IDK7rITs latest?i=lzzuuTBAqDc:FCKGJyUHA-8:gIN9vFwlzzuuTBAqDc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments