From 2acae6e10c0c895b2e0b7e60abb7e0c65c73e2c7 Mon Sep 17 00:00:00 2001
From: Sergio Arroutbi
Date: Fri, 11 Mar 2022 11:48:43 +0100
Subject: [PATCH] Add action.errorfile.maxsize parameter
Resolves: rhbz2064318
Signed-off-by: Sergio Arroutbi
---
...02.0-rhbz2064318-errfile-maxsize-doc.patch | 51 +++++
...8.2102.0-rhbz2064318-errfile-maxsize.patch | 192 ++++++++++++++++++
rsyslog.spec | 15 +-
3 files changed, 255 insertions(+), 3 deletions(-)
create mode 100644 rsyslog-8.2102.0-rhbz2064318-errfile-maxsize-doc.patch
create mode 100644 rsyslog-8.2102.0-rhbz2064318-errfile-maxsize.patch
diff --git a/rsyslog-8.2102.0-rhbz2064318-errfile-maxsize-doc.patch b/rsyslog-8.2102.0-rhbz2064318-errfile-maxsize-doc.patch
new file mode 100644
index 0000000..01a6fc4
--- /dev/null
+++ b/rsyslog-8.2102.0-rhbz2064318-errfile-maxsize-doc.patch
@@ -0,0 +1,51 @@
+--- a/source/configuration/actions.rst 2020-01-13 09:35:54.000000000 +0100
++++ b/source/configuration/actions.rst 2022-03-09 10:46:23.945881936 +0100
+@@ -90,6 +90,12 @@
+ provided to the action in question, the action name as well as
+ the rsyslog status code roughly explaining why it failed.
+
++- **action.errorfile.maxsize** integer
++
++ In some cases, error file needs to be limited in size.
++ This option allows specifying a maximum size, in bytes, for the error file.
++ When error file reaches that size, no more errors are written to it.
++
+ - **action.execOnlyOnceEveryInterval** integer
+
+ Execute action only if the last execute is at last seconds in the
+--- a/build/_sources/configuration/actions.rst.txt 2020-01-13 09:35:54.000000000 +0100
++++ b/build/_sources/configuration/actions.rst.txt 2022-03-09 11:17:44.391213038 +0100
+@@ -90,6 +90,12 @@
+ provided to the action in question, the action name as well as
+ the rsyslog status code roughly explaining why it failed.
+
++- **action.errorfile.maxsize** integer
++
++ In some cases, error file needs to be limited in size.
++ This option allows specifying a maximum size, in bytes, for the error file.
++ When error file reaches that size, no more errors are written to it.
++
+ - **action.execOnlyOnceEveryInterval** integer
+
+ Execute action only if the last execute is at last seconds in the
+--- a/build/configuration/actions.html 2021-02-15 12:53:30.000000000 +0100
++++ b/build/configuration/actions.html 2022-03-09 11:27:04.035799702 +0100
+@@ -122,6 +122,11 @@
+ provided to the action in question, the action name as well as
+ the rsyslog status code roughly explaining why it failed.
+
++action.errorfile.maxsize integer
++In some cases, error file needs to be limited in size.
++This option allows specifying a maximum size, in bytes, for the error file.
++When error file reaches that size, no more errors are written to it.
++
+ action.execOnlyOnceEveryInterval integer
+ Execute action only if the last execute is at last seconds in the
+ past (more info in ommail, but may be used with any action)
+@@ -672,4 +677,4 @@
+
+