I need to grep for string named "Account_Id" in my logs folder. However, there are 10000 log files there and i need to search this only in files which were created in last 30 days.
I need output like this in a csv file. This is just an example
File_name Matched_string Line
program1.log where account_id1 14
program2.log substr(account_id,1,4) 45
I did try using grep -nHi "Account_Id" *
However it searches entire directory and takes a lot of time
Any help is really really appreciated