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

udp and openvpn #45

Closed
amarmain opened this issue May 30, 2023 · 2 comments
Closed

udp and openvpn #45

amarmain opened this issue May 30, 2023 · 2 comments

Comments

@amarmain
Copy link

amarmain commented May 30, 2023

Laravel version: 10.13.0
hedii/laravel-gelf-logger version: 8.0.1

Can you add the possibility to set the third parameter of UdpTransport class?

public function __construct( string $host = self::DEFAULT_HOST, int $port = self::DEFAULT_PORT, private int $chunkSize = self::CHUNK_SIZE_WAN )

If the message is too long (backtrace), the message is not send to my graylog server.

Here are some explanation about the MTU issue with OpenVpn:

bzikarsky/gelf-php#117 (comment)

If I override this line from GelfLoggerFactory.php file, I can receive the message to my graylog server:

default => new UdpTransport($host, $port, 1200),

instead of

default => new UdpTransport($host, $port),

@hedii
Copy link
Owner

hedii commented May 30, 2023

Hi, yes i will add it as soon as i have time to write it. Thanks!

@amarmain
Copy link
Author

Thanks for your help!

@hedii hedii closed this as completed in c03f2b3 Jun 1, 2023
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