jefferson1 Posted June 18, 2019 Report Posted June 18, 2019 Every night oka report generate cheyali from like 10 servers and send it to email is it possible using grep example: grep -ic “cuz” *2019-06-17* Quote
jefferson1 Posted June 18, 2019 Author Report Posted June 18, 2019 Cuz word is the error printed in logs result + total mail ravali Quote
jefferson1 Posted June 18, 2019 Author Report Posted June 18, 2019 1 minute ago, ammu_paalu said: put a cron job ra Great idea buddy, script ela ? Quote
reddyeee Posted June 18, 2019 Report Posted June 18, 2019 1 hour ago, jefferson1 said: Every night oka report generate cheyali from like 10 servers and send it to email is it possible using grep example: grep -ic “cuz” *2019-06-17* Is it ok if you get 1 report per server or do you need consolidated report ? write a shell script with couple of lines to print a date and then use that variable with in your grep. If you want consolidated report then you need to either get all the files to a single server or run remote ssh commands with pub/prv key setup. Quote
jefferson1 Posted June 18, 2019 Author Report Posted June 18, 2019 7 minutes ago, reddyeee said: Is it ok if you get 1 report per server or do you need consolidated report ? write a shell script with couple of lines to print a date and then use that variable with in your grep. If you want consolidated report then you need to either get all the files to a single server or run remote ssh commands with pub/prv key setup. Good point, several emails kanna okka email aithe better everyday ani na feeling Quote
AndhraneedSCS Posted June 18, 2019 Report Posted June 18, 2019 grep -ic cuz *2019-06-17* > test.txt and then e-mail the file Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.