Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in error message when file in cat /non/existent/file does not exist #5360

Open
sirkrypt0 opened this issue Apr 9, 2024 · 0 comments · May be fixed by #5361
Open

Typo in error message when file in cat /non/existent/file does not exist #5360

sirkrypt0 opened this issue Apr 9, 2024 · 0 comments · May be fixed by #5361

Comments

@sirkrypt0
Copy link

Expected behavior

The error message does not contain typos.

Actual behavior

The errors message looks like this: /* file cound not be accessed - seeerror messages */.

Steps to reproduce the behavior

In your rsyslog config, use something like this and send something to the syslog, e.g. using logger "test".

set $.test = `cat /non/existent/file`;

$template TEST,"<%PRI%> %TIMESTAMP% %HOSTNAME% %PROCID% %MSGID% %.test%\n"

*.*;auth,authpriv.none action(type="omfwd" target="172.17.0.1" port="514" protocol="UDP" template="TEST")

Notice that the message contains the error message with the typos.

Environment

  • rsyslog version: 8.2302.0
  • platform: Debian Bookworm
  • for configuration questions/issues, include rsyslog.conf and included config files
set $.test = `cat /non/existent/file`;

$template TEST,"<%PRI%> %TIMESTAMP% %HOSTNAME% %PROCID% %MSGID% %.test%\n"

*.*;auth,authpriv.none action(type="omfwd" target="172.17.0.1" port="514" protocol="UDP" template="TEST")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant