Jump to content

Linux meeda chesevallu unnara- oka doubt


Recommended Posts

Posted

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*

Posted

Cuz word is the error printed in logs 

result + total mail ravali 

Posted
1 minute ago, ammu_paalu said:

put a cron job ra 

Great idea buddy, script ela ?

Posted
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. 

Posted
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 

Posted

grep -ic cuz *2019-06-17* > test.txt 

 

and then e-mail the file 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...