Quote:
Originally Posted by detekto
Hi there!
|
Welcome to LQ, hope you like it here.
Quote:
Originally Posted by detekto
I am a junior linux admin seeking for advice.
|
Then brace yourself for much reading and testing things in a safe (virtual?) environment.
Quote:
Originally Posted by detekto
(..) several different applications installed on different servers. (..) store some files of each application (mostly logfiles) for some time period. (..) Different systems - different policies (..) A lot of files on different servers. (..) Most probably files must be moved to centralized location, don't know.
|
One of the first aspects of a project is getting the requirements right. In your case you make a list of applications, which files must be stored and for how long, how they write their (log) files (I mean if it is configurable). This provides overview, can be used as a checklist / basis for reporting back, is the efficient way of working and allows you to spot hiatus / pitfalls from a mile away.
Quote:
Originally Posted by detekto
Is there any tool, that I can use for such purposes? Define policies etc.
|
For local rotation of log files, unless an application provides its own tools, that'll generally be 'logrotate'. See 'man logrotate' for details.
If you backup logs to a backup server or write logs to a central syslog server then you'll rotate there. This is obviously efficient as you'll have all policies in a central location and don't require local storage for say 2 years worth of logs you won't be doing anything with anyway.
Quote:
Originally Posted by detekto
Scripting solution must be hell, I guess
|
There's quite a few people here who do scripting quite well. The reason is they do is they didn't operate on a presumption back then but read up on things and persevered writing scripts. Today those help out others a lot here on LQ. So I suggest you ditch the presumption and see where that gets you.