Difference between revisions of "Logrotate"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[wikipedia:logrotate]] allows for the [[automatic rotation]] compression, removal and mailing of log files | |
− | [[wikipedia:logrotate]] | ||
+ | <code>logrotate</code> package | ||
+ | |||
+ | [[logrotate.timer]] | ||
+ | Configuration file: <code>/etc/[[logrotate.conf]]</code> | ||
+ | |||
+ | |||
+ | Rotate a single file | ||
+ | logrotate /path/to/file/to_rotate | ||
+ | |||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[split]]</code> | ||
+ | * <code>[[truncate]]</code> | ||
+ | |||
+ | |||
+ | == Activities == | ||
+ | * Read https://wiki.archlinux.org/index.php/Logrotate | ||
+ | * Read [[man]] page https://linux.die.net/man/8/logrotate | ||
== See also == | == See also == | ||
* {{cat}} | * {{cat}} | ||
+ | * {{logging}} | ||
+ | * {{logs}} | ||
[[Category:Linux commands]] | [[Category:Linux commands]] | ||
[[Category:logging]] | [[Category:logging]] |
Latest revision as of 13:40, 12 May 2023
wikipedia:logrotate allows for the automatic rotation compression, removal and mailing of log files
logrotate
package
logrotate.timer
Configuration file: /etc/logrotate.conf
Rotate a single file
logrotate /path/to/file/to_rotate
Related commands[edit]
Activities[edit]
- Read https://wiki.archlinux.org/index.php/Logrotate
- Read man page https://linux.die.net/man/8/logrotate
See also[edit]
cat
,tac
,more
,less
,tail
,mtail
,echo
,stdin
,tr
,column
,paste
,truncate
,logrotate
,xzcat
pv
,progress
,sort
,ncat
,virt-cat
,awk
,join
,col
,fold
,tee
,sponge
,nfs-cat
,journalctl, ccat, icat, EOF
, lolcat- Linux logging, Cisco IOS logging
- Logs, Log collector, log management, log explorer, Linux logging,
docker logs
,minikube logs
, Vector, Logstash, Filebeat, promtail, logfmt, Elasticsearch, fluentd, Mezmo (LogDNA), Scalyr, Loggly, Loki,tlog, cockpit
, NXLog, Winston, Amazon CloudWatch Logs Insights, Logz.io, Logflare
Advertising: