2

My system is generating log files, e.g. for apache, nginx, tomcat, and other things and they grow pretty fast. I am looking for best practice recommendations because there are so many options to configure things, I'd just as well learn from people with more experience than I have so far administering a server. Thanks.

EEAA
  • 109,363
  • 18
  • 175
  • 245
pitosalas
  • 177
  • 1
  • 6

1 Answers1

2

To start with you should go back to your policies. What are you logging and how long do you need to store it? Do you have any requirements to erase logs?

We use a partially centralized logging solution based on syslog. Systems that can not log to the syslog server logs locally. We rotate logs daily and compress old logs. Old logs are regularly shipped to a centralized system for storage, freeing up space on the systems and simplifying digging in old logs. We are required to store some logs for at least 12 months, and in practice we store all logs for 12 months.

pehrs
  • 8,789
  • 1
  • 30
  • 46