Blame SOURCES/rsyslog-8.24.0-doc-rhbz1625935-mmkubernetes-CRI-O.patch

fde8c1
From 7b09e9782c4e6892a8d16fd4e3aa2cca440a41e6 Mon Sep 17 00:00:00 2001
fde8c1
From: Rich Megginson <rmeggins@redhat.com>
fde8c1
Date: Wed, 22 Aug 2018 08:37:03 -0600
fde8c1
Subject: [PATCH] url not required - add information about CRI-O
fde8c1
fde8c1
The KubernetesURL parameter is not mandatory since it has
fde8c1
a useful default value.
fde8c1
Add information about CRI-O.
fde8c1
Minor cleanup.
fde8c1
---
fde8c1
 source/configuration/modules/mmkubernetes.rst | 18 +++++++++---------
fde8c1
 1 file changed, 9 insertions(+), 9 deletions(-)
fde8c1
fde8c1
diff --git a/source/configuration/modules/mmkubernetes.rst b/source/configuration/modules/mmkubernetes.rst
fde8c1
index be9e710f..a3cd4d49 100644
fde8c1
--- a/source/configuration/modules/mmkubernetes.rst
fde8c1
+++ b/source/configuration/modules/mmkubernetes.rst
fde8c1
@@ -19,14 +19,14 @@ namespace.
fde8c1
 
fde8c1
 .. note::
fde8c1
 
fde8c1
-   This **only** works with log files in `/var/log/containers/*.log`
fde8c1
-   (docker `--log-driver=json-file`), or with journald entries with
fde8c1
+   This **only** works with log files in `/var/log/containers/*.log` (docker
fde8c1
+   `--log-driver=json-file`, or CRI-O log files), or with journald entries with
fde8c1
    message properties `CONTAINER_NAME` and `CONTAINER_ID_FULL` (docker
fde8c1
-   `--log-driver=journald`), and when the application running inside
fde8c1
-   the container writes logs to `stdout`/`stderr`.  This **does not**
fde8c1
-   currently work with other log drivers.
fde8c1
+   `--log-driver=journald`), and when the application running inside the
fde8c1
+   container writes logs to `stdout`/`stderr`.  This **does not** currently
fde8c1
+   work with other log drivers.
fde8c1
 
fde8c1
-For json-file logs, you must use the `imfile` module with the
fde8c1
+For json-file and CRI-O logs, you must use the `imfile` module with the
fde8c1
 `addmetadata="on"` parameter, and the filename must match the
fde8c1
 liblognorm rules specified by the `filenamerules`
fde8c1
 (:ref:`filenamerules`) or `filenamerulebase` (:ref:`filenamerulebase`)
fde8c1
@@ -70,7 +70,7 @@ KubernetesURL
fde8c1
    :widths: auto
fde8c1
    :class: parameter-table
fde8c1
 
fde8c1
-   "word", "https://kubernetes.default.svc.cluster.local:443", "yes", "none"
fde8c1
+   "word", "https://kubernetes.default.svc.cluster.local:443", "no", "none"
fde8c1
 
fde8c1
 The URL of the Kubernetes API server.  Example: `https://localhost:8443`.
fde8c1
 
fde8c1
@@ -248,8 +248,6 @@ match the filename and extract metadata.  The default value is::
fde8c1
     In the above rules, the slashes ``\`` ending each line indicate
fde8c1
     line wrapping - they are not part of the rule.
fde8c1
 
fde8c1
-There are two rules because the `container_hash` is optional.
fde8c1
-
fde8c1
 .. _filenamerulebase:
fde8c1
 
fde8c1
 filenamerulebase
fde8c1
@@ -351,6 +349,8 @@ get the basic necessary Kubernetes metadata from the filename:
fde8c1
     input(type="imfile" file="/var/log/containers/*.log"
fde8c1
           tag="kubernetes" addmetadata="on")
fde8c1
 
fde8c1
+(Add `reopenOnTruncate="on"` if using Docker, not required by CRI-O).
fde8c1
+
fde8c1
 and/or an `imjournal` input for docker journald container logs annotated by
fde8c1
 Kubernetes:
fde8c1