Article 51CM6 House keeping server logs older than 30 days "URGENT"

House keeping server logs older than 30 days "URGENT"

by
veeragovindu
from LinuxQuestions.org on (#51CM6)
HI All,

1) In linux server daily logs moving to another path older than last month.
2) tar those files last month date format (previous files also in tar files)
3)then remove files except dateformat tars

ex:

abc.log_12-03-2019.gz
def.log_14-02-2019.gz

these files move to other location with that date means current date is march but we need to move file on last month file.

then tar old month date and remove move log files on that day

thanks,
veeralatest?d=yIl2AUoC8zA latest?i=PSpwSXe9UtE:Z7ldQkgwy4E:F7zBnMy latest?i=PSpwSXe9UtE:Z7ldQkgwy4E:V_sGLiP latest?d=qj6IDK7rITs latest?i=PSpwSXe9UtE:Z7ldQkgwy4E:gIN9vFwPSpwSXe9UtE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments