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

How to get rsyslog to honour msg hostname and timestamp for local connections #5334

Open
peterand-pa opened this issue Feb 23, 2024 · 1 comment

Comments

@peterand-pa
Copy link

Expected behavior

How to correctly parse incoming logs over loopback or unix socket so that the MSG hostname and timestamp is honoured

  • and with the unix socket option not to interpret it as coming from journald

Actual behavior

Steps to reproduce the behavior

Any log message sent to unix socket or TCP connection to 127.0.0.1

Attempted config:

module(
   load="imuxsock"
)
input (
   Type="imuxsock"
   Socket="/var/run/syslog.sock"
   Unlink="on"
   Annotate="on"
   ParseTrusted="on"
   useSpecialParser="off"
   UseSysTimeStamp="off"
   parseHostname="on"
   RateLimit.Burst="100000"
   RateLimit.Interval="1"
)

Environment

rsyslogd 8.24.0-57.el7_9.3, compiled with:
PLATFORM: x86_64-redhat-linux-gnu

@davidelang
Copy link
Contributor

davidelang commented Feb 23, 2024 via email

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

No branches or pull requests

2 participants