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

Add unix_datagram support to syslog source #8509

Open
jszwedko opened this issue Jul 29, 2021 · 3 comments
Open

Add unix_datagram support to syslog source #8509

jszwedko opened this issue Jul 29, 2021 · 3 comments
Labels
source: syslog Anything `syslog` source related type: enhancement A value-adding code change that enhances its existing functionality.

Comments

@jszwedko
Copy link
Member

Per #4787 (comment)

Related: #4787 #5269

@jszwedko jszwedko added source: syslog Anything `syslog` source related type: enhancement A value-adding code change that enhances its existing functionality. labels Jul 29, 2021
@emerzon
Copy link

emerzon commented Jun 30, 2022

Hello, actually we need both unix_datagram and unix_stream to be added to syslog source. The later is used by HAProxy.

@jszwedko
Copy link
Member Author

Hi @emerzon ! The syslog source does already support streaming unix sockets, just not datagram.

@ollytom
Copy link

ollytom commented Feb 23, 2023

For anyone here looking to write from rsyslog to vector, you can use the socket sink with codec set to syslog:

[sources.syslog]
type = "socket"
mode = "unix_datagram"
path = "/var/lib/vector/syslog"
decoding.codec = "syslog"
socket_file_mode = 0o662

rsyslog can only write to datagram unix sockets according to the output docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: syslog Anything `syslog` source related type: enhancement A value-adding code change that enhances its existing functionality.
Projects
None yet
Development

No branches or pull requests

3 participants