Bug 54959 - rsyslog-mongo: /etc/rsyslog.d/01_mongo.conf: line 1: invalid character '\' in object definition
Summary: rsyslog-mongo: /etc/rsyslog.d/01_mongo.conf: line 1: invalid character '\' in...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: rsyslog-mongo (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-27 12:00 MSK by Artem Varaksa
Modified: 2025-10-10 20:36 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2025-06-27 12:00:17 MSK
Шаги
====

1. # apt-get install -y rsyslog rsyslog-mongo && \
    systemctl enable --now rsyslog && \
    systemctl status rsyslog --no-pager -l


Фактический результат
=====================

> error during parsing file /etc/rsyslog.d/01_mongo.conf, on or before line 1: invalid character '\' in object definition - is there an invalid escape sequence somewhere? [v8.2502.0 try https://www.rsyslog.com/e/2207 ]
> error during parsing file /etc/rsyslog.d/01_mongo.conf, on or before line 1: invalid character '\' in object definition - is there an invalid escape sequence somewhere? [v8.2502.0 try https://www.rsyslog.com/e/2207 ]
> error during parsing file /etc/rsyslog.d/01_mongo.conf, on or before line 1: syntax error on token '" : \' [v8.2502.0 try https://www.rsyslog.com/e/2207 ]
> could not interpret master config file '/etc/rsyslog.conf'. [v8.2502.0 try https://www.rsyslog.com/e/2207 ]


Ожидаемый результат
===================

Корректный синтаксис конфигурации по умолчанию.


Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Server 11.0 x86_64
rsyslog-8.2502.0-alt3.x86_64

[p11] ALT Server 11.0 x86_64
rsyslog-8.2502.0-alt3.x86_64

[p10] ALT Server 10.4 x86_64
rsyslog-8.2408.0-alt2.x86_64
Comment 1 Repository Robot 2025-10-10 20:36:59 MSK
rsyslog-8.2502.0-alt4 -> sisyphus:

Thu Oct 09 2025 Sergey Gvozdetskiy <serjigva@altlinux> 8.2502.0-alt4
- Logfile ownership corrected in rsyslog.d/00_common.conf (Closes: #55643).
- Removed systemd Requires=syslog.socket (Closes: #44911), thx Rocky.
- Fixed double screened quotes from mongo config (Closes: #54959).