Skip to content

Commit

Permalink
Add logrotation section on Running Filebeat on k8s (elastic#24120)
Browse files Browse the repository at this point in the history
(cherry picked from commit ea5d413)
  • Loading branch information
ChrsMark committed Feb 19, 2021
1 parent 929346a commit b829b65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions filebeat/docs/running-on-kubernetes.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,12 @@ annotations:
co.elastic.logs.json-logging/json.add_error_key: "true"
co.elastic.logs.json-logging/json.message_key: "message"
------------------------------------------------

[float]
==== Logrotation

According to https://kubernetes.io/docs/concepts/cluster-administration/logging/#logging-at-the-node-level[kubernetes documentation]
_Kubernetes is not responsible for rotating logs, but rather a deployment tool should set up a solution to address that_.
Different logrotation strategies can cause issues that might make Filebeat losing events or even duplicating events.
Users can find more information about Filebeat's logrotation best practises at Filebeat's
<<file-log-rotation,log rotation specific documentation>>

0 comments on commit b829b65

Please sign in to comment.