M
M
MoyMirok2021-07-14 13:22:42
System administration
MoyMirok, 2021-07-14 13:22:42

Setting up logs, how to do it through logrotate?

Hello. How can you do this with the help of logrotate:
- For 365 days, pack the log into a separate zip archive with the date.
- Send the old log for 24 hours by email
- And then clean it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sand, 2021-07-14
@MoyMirok

man logrotate
Look at the directives: rotate, daily, dateext, mail

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question