I have many generated logs in /var/opt/log_loc1,/var/opt/log_loc2, /var/opt/log_loc3 from different cron jobs. Instead of looking in each log, is there a way to schedule a cron job that populates the new logfile with all logs that have Error message in them?
Basically I want to populate with all log names and the error in it a new logfile with "all_logs_%Y_%m_%d" as a name. Each day, I will have a new all_logs_%Y_%m_%d
Example: Here's a list of my logfiles in /var/opt/log_loc1
*Apologies if my question is incomplete