History log of /openbmc/phosphor-logging/test/remote_logging_test_config.cpp (Results 1 – 8 of 8)
Revision Date Author Comments
# 22e8695f 09-Jun-2023 Ivan Mikhaylov <fr0st61te@gmail.com>

phosphor-logging: add rsyslog configuration for TCP, UDP

Add possibility to set TCP or UDP as transport protocol for rsyslog
configuration.

Depends on change of dbus interfaces in:
https://gerrit.o

phosphor-logging: add rsyslog configuration for TCP, UDP

Add possibility to set TCP or UDP as transport protocol for rsyslog
configuration.

Depends on change of dbus interfaces in:
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/64224

Tested: "@" set for UDP and "@@" for TCP in configuration file.

Change-Id: Ie849fb64b5e6cc8d87d7a984cd4d326e39aeb4ea
Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>

show more ...


# 445665af 17-Mar-2022 Paul Fertser <fercerpav@gmail.com>

rsyslog-config: fix disabled config

When no remote syslog is used action ~ (drop) isn't appropriate as it
inhibits processing of the current message for any additional configs
that might come after

rsyslog-config: fix disabled config

When no remote syslog is used action ~ (drop) isn't appropriate as it
inhibits processing of the current message for any additional configs
that might come after server.conf. This file shouldn't be empty either
as there're no other output actions defined in default configuration.

Make it a no-op by sending to /dev/null instead. Add a linefeed at the
end so that "cat server.conf" would look nicer.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Change-Id: I6636c76cf0304b3c36f579225846ab19e992c333

show more ...


# a1c4338e 15-Apr-2021 Lei YU <yulei.sh@bytedance.com>

rsyslog-config: Support IPv6 address

The IPv6 address requires `[]` in the config file. Add support for this
format so that user could set IPv6 address on DBus, and this service
will

rsyslog-config: Support IPv6 address

The IPv6 address requires `[]` in the config file. Add support for this
format so that user could set IPv6 address on DBus, and this service
will add `[]` in the config file to make it work correctly.

Split the logic in restore() into a separate function parseConfig() so
that it is easier to test.

Tested: Verify both IPv4 and IPv6 address could be set to rsyslog-config
and verify it works correctly.
Added several IPv6 related test cases.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I2135e3b0e916947449ab5d0cfa9669a98349226e

show more ...


# 0a0b5ea5 22-May-2019 Santosh Puranik <santosh.puranik@in.ibm.com>

rsyslod: Change disable action

This commit changes the way remote logging is disabled.
Prior to this, we would create/delete the
RSYSLOG_SERVER_CONFIG_FILE to enable/disable remote l

rsyslod: Change disable action

This commit changes the way remote logging is disabled.
Prior to this, we would create/delete the
RSYSLOG_SERVER_CONFIG_FILE to enable/disable remote logging.

Deleting the file would cause systemd to spin while it tried
to trigger the syslog service via socket activation. So this
commit reverts commits 40a7406097c0b5b0670c5987f6fe8c902d65562d
and e165ea956c5557c2b470869d252c80744227b00f and then:

To disable remote logging, we now simply ask that rsyslog
ignore all incoming messages. This is done by using a special
'~' rule for all messages.

Tested:
-- Verified that systemd no longer spins while trying to
activate rsyslog with default config.
-- Verified that setting a remote logging server over the
REST API still works.

Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: Ife217a84395aaf32b775b7a84f85fc6310df3e7c

show more ...


# e165ea95 11-Jan-2019 Deepak Kodihalli <dkodihal@in.ibm.com>

rsyslogd: don't start without actions

Rsyslog is currently used only for remote logging. The daemon would run
though (started by systemd) even when remote logging has not been
config

rsyslogd: don't start without actions

Rsyslog is currently used only for remote logging. The daemon would run
though (started by systemd) even when remote logging has not been
configured. In other words, it would run without any actions.

With Yocto 2.6, rsyslogd won't run without any actions. Hence, rsyslogd
is now started only on the condition that the remote logging config
file is present.

Change-Id: Iae11d6912e60765ecb774b663d44b4e3c6f381a3
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...


# 30047bf9 01-Nov-2018 Patrick Venture <venture@google.com>

minor cleanup, std namespacing

Added std namespace to places where there is a cpp version.

Change-Id: I60a05a7c9cdcd79cfffc3c4968005fcbe34acf81
Signed-off-by: Patrick Venture <v

minor cleanup, std namespacing

Added std namespace to places where there is a cpp version.

Change-Id: I60a05a7c9cdcd79cfffc3c4968005fcbe34acf81
Signed-off-by: Patrick Venture <venture@google.com>

show more ...


# f18bf836 26-Oct-2018 Patrick Venture <venture@google.com>

add .clang-format

Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52
Signed-off-by: Patrick Venture <venture@google.com>


# 5ac1bde1 30-Aug-2018 Deepak Kodihalli <dkodihal@in.ibm.com>

phosphor-rsyslog-conf: add unit tests

Add tests pertaining to remote logging config file.

Change-Id: Idaeac09b5abe91af30dc0eb32664e8af556ecda2
Signed-off-by: Deepak Kodihalli <d

phosphor-rsyslog-conf: add unit tests

Add tests pertaining to remote logging config file.

Change-Id: Idaeac09b5abe91af30dc0eb32664e8af556ecda2
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...