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

log_socket_type parameter should allow host, port, timeout options #1839

Open
simonelbaz opened this issue May 13, 2024 · 1 comment · May be fixed by #1841
Open

log_socket_type parameter should allow host, port, timeout options #1839

simonelbaz opened this issue May 13, 2024 · 1 comment · May be fixed by #1841

Comments

@simonelbaz
Copy link

simonelbaz commented May 13, 2024

Hello,

I need to pass %option as mentionned in https://perldoc.perl.org/Sys::Syslog#setlogsock().

It would allow sending logs to remote host, port and timeout.

Expected Behavior

"inet" value should allow host, port, timeout options.

Current Behavior

log_socket_type is checked against the following regex: if ($self->{_socket_type} =~ /^(unix|inet)$/i) {.

It is not useful for "inet" socket used towards remote servers.

Possible Solution

log_socket_type parameter should allow hash input.

Regards

@simonelbaz simonelbaz changed the title log_socket_type parameter should allow hash input log_socket_type parameter should allow host, port, timeout options May 13, 2024
@ikedas
Copy link
Member

ikedas commented May 14, 2024

It is not useful for "inet" socket used towards remote servers.

The unix did not work on some environments including Solaris and inet (i.e. TCP or UDP bound for local host) had to be specified.

BTW making the full option available looks very meaningful. Thank you for suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants