mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Rsyslog: Bump Package version. Add RELP Protocol. Add ability to compress UDP & TCP protocols. Update configuration files to newer standards. (#701)
rsyslog: add support for RELP and compression, and update config files
This commit is contained in:
parent
087b6688e7
commit
31856dc720
@ -1,2 +1,7 @@
|
||||
8.0.100
|
||||
- Initial addon
|
||||
|
||||
8.0.101
|
||||
- Add RELP Protocol
|
||||
- Add ability to compress messages using TCP/UDP protocols
|
||||
- Update configuration files using newer standards
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
PKG_NAME="rsyslog"
|
||||
PKG_VERSION="8.21.0"
|
||||
PKG_REV="100"
|
||||
PKG_REV="101"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/rsyslog"
|
||||
@ -37,6 +37,8 @@ PKG_ADDON_REPOVERSION="8.0"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-imfile \
|
||||
--enable-imjournal \
|
||||
--enable-relp \
|
||||
--enable-omjournal \
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes"
|
||||
|
||||
|
@ -26,9 +26,13 @@ oe_setup_addon service.rsyslog
|
||||
if [ ! -z "$RSYSLOG_IP_NAME_FQDN" ]
|
||||
then
|
||||
cat "$ADDON_DIR/config/common.conf"
|
||||
[ "$RSYSLOG_PROTOCOL" == "RELP" ] && cat "$ADDON_DIR/config/relp.conf"
|
||||
[ "$RSYSLOG_JOURNAL_LOGGING" == "true" ] && cat "$ADDON_DIR/config/journal.conf"
|
||||
[ "$RSYSLOG_KODI_LOGGING" == "true" ] && cat "$ADDON_DIR/config/kodi.conf"
|
||||
[ "$RSYSLOG_PROTOCOL" == "UDP" ] && PROTOCOL="@" || PROTOCOL="@@"
|
||||
echo "*.* $PROTOCOL$RSYSLOG_IP_NAME_FQDN:$RSYSLOG_PORT"
|
||||
[ "$RSYSLOG_PROTOCOL" == "UDP" ] && PROTOCOL="@"
|
||||
[ "$RSYSLOG_PROTOCOL" == "TCP" ] && PROTOCOL="@@"
|
||||
[ "$RSYSLOG_PROTOCOL" == "RELP" ] && PROTOCOL="omrelp"
|
||||
[ "$RSYSLOG_PROTOCOL" == "RELP" ] && ZLIB="0" || [ "$RSYSLOG_ZLIB_COMPRESSION" == "true" ] && ZLIB="$RSYSLOG_ZLIB_COMPRESSION_LEVEL" || ZLIB="0"
|
||||
[ "$RSYSLOG_PROTOCOL" == "RELP" ] && echo "action(type=\"$PROTOCOL\" target=\"$RSYSLOG_IP_NAME_FQDN\" port=\"$RSYSLOG_PORT\")" || echo "action(type=\"omfwd\" target=\"$RSYSLOG_IP_NAME_FQDN\" protocol=\"$RSYSLOG_PROTOCOL\" port=\"$RSYSLOG_PORT\")"
|
||||
fi
|
||||
) > "$ADDON_HOME/rsyslog.conf"
|
||||
|
@ -1,6 +1,7 @@
|
||||
$ModLoad imuxsock
|
||||
$OmitLocalLogging on
|
||||
module(load="imuxsock"
|
||||
SysSock.RateLimit.Interval="1"
|
||||
sysSock.parseHostname="on")
|
||||
|
||||
$AddUnixListenSocket /run/systemd/journal/syslog
|
||||
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
||||
$WorkDirectory /storage/.kodi/temp
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
$ModLoad imjournal
|
||||
$ModLoad imklog
|
||||
module(load="imjournal")
|
||||
module(load="omjournal")
|
||||
module(load="imklog")
|
||||
|
||||
|
@ -1,65 +1,74 @@
|
||||
$ModLoad imfile
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity emerg
|
||||
$InputFileFacility local0
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
module(load="imfile")
|
||||
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity alert
|
||||
$InputFileFacility local1
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="emerg"
|
||||
Facility="local0"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity crit
|
||||
$InputFileFacility local2
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="alert"
|
||||
Facility="local1"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity error
|
||||
$InputFileFacility local3
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="crit"
|
||||
Facility="local2"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity warning
|
||||
$InputFileFacility local4
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="error"
|
||||
Facility="local3"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity notice
|
||||
$InputFileFacility local5
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="warning"
|
||||
Facility="local4"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity info
|
||||
$InputFileFacility local6
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="notice"
|
||||
Facility="local5"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
$InputFileName /storage/.kodi/temp/kodi.log
|
||||
$InputFileTag kodi
|
||||
$InputFileStateFile kodi
|
||||
$InputFileSeverity debug
|
||||
$InputFileFacility local7
|
||||
$InputRunFileMonitor
|
||||
$InputFilePersistStateInterval 1
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="info"
|
||||
Facility="local6"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
input(type="imfile"
|
||||
File="/storage/.kodi/temp/kodi.log"
|
||||
Tag="kodi"
|
||||
Severity="debug"
|
||||
Facility="local7"
|
||||
deleteStateOnFileDelete="on"
|
||||
escapeLF="on"
|
||||
PersistStateInterval="5")
|
||||
|
||||
|
2
packages/addons/service/rsyslog/source/config/relp.conf
Normal file
2
packages/addons/service/rsyslog/source/config/relp.conf
Normal file
@ -0,0 +1,2 @@
|
||||
module(load="omrelp")
|
||||
|
@ -30,3 +30,11 @@ msgstr ""
|
||||
msgctxt "#30006"
|
||||
msgid "Log Kodi"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#30007"
|
||||
msgid "Zlib Compression"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#30008"
|
||||
msgid "Level"
|
||||
msgstr ""
|
||||
|
@ -1,11 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<settings>
|
||||
<category label="30000">
|
||||
<setting label="30001" type="bool" id="RSYSLOG_MANUAL" default="false" />
|
||||
<setting label="30001" type="bool" id="RSYSLOG_MANUAL" default="true" />
|
||||
<setting label="30002" type="text" id="RSYSLOG_IP_NAME_FQDN" visible="eq(-1,false)" />
|
||||
<setting label="30003" type="number" id="RSYSLOG_PORT" default="514" visible="eq(-2,false)" />
|
||||
<setting label="30004" type="labelenum" id="RSYSLOG_PROTOCOL" lvalues="UDP|TCP" visible="eq(-3,false)" />
|
||||
<setting label="30004" type="labelenum" id="RSYSLOG_PROTOCOL" lvalues="UDP|TCP|RELP" visible="eq(-3,false)" />
|
||||
<setting label="30005" type="bool" id="RSYSLOG_JOURNAL_LOGGING" default="false" visible="eq(-4,false)" />
|
||||
<setting label="30006" type="bool" id="RSYSLOG_KODI_LOGGING" default="true" visible="eq(-5,false)" />
|
||||
<setting label="30007" type="bool" id="RSYSLOG_ZLIB_COMPRESSION" default="false" visible="eq(-6,false)+!eq(-3,2)" />
|
||||
<setting label="30008" type="labelenum" id="RSYSLOG_ZLIB_COMPRESSION_LEVEL" values="0|1|2|3|4|5|6|7|8|9" default="0" visible="eq(-7,false)+!eq(-4,2)+eq(-1,true)" enable="eq(-1,true)" subsetting="true" />
|
||||
</category>
|
||||
</settings>
|
||||
|
@ -5,4 +5,6 @@
|
||||
<setting id="RSYSLOG_MANUAL" value="false"/>
|
||||
<setting id="RSYSLOG_PORT" value="514"/>
|
||||
<setting id="RSYSLOG_PROTOCOL" value="UDP"/>
|
||||
<setting id="RSYSLOG_ZLIB_COMPRESSION" value="false" />
|
||||
<setting id="RSYSLOG_ZLIB_COMPRESSION_LEVEL" value="0" />
|
||||
</settings>
|
||||
|
Loading…
x
Reference in New Issue
Block a user