Quantcast
Channel: Would GREP work to filter a log file based on keywords, dates, timestamps? Or is there a better alternative? - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Matthieu Moy for Would GREP work to filter a log file based on...

grep filters regular expressions. It is very good at filtering lines containing one particular keyword, but a date range is hard to specify using regular expressions. For example, to get errors between...

View Article


Answer by Stéphane Chazelas for Would GREP work to filter a log file based on...

awk is probably all you need here as it can do regexp matching, split lines into fields and do string comparisons (which works for date comparison as long as you use YYYY-MM-DD HH:MM:SS timestamps and...

View Article


Would GREP work to filter a log file based on keywords, dates, timestamps? Or...

I am trying to filter a log file based on the following: date range of an error (yyyy-mm-dd) timestamp range of an error (01:00:00 - 00:00:00) keywords (previousFireTime, nextFireTime) I've been...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>