You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue with Proxy Option in Microsoft Sentinel Log Analytics Logstash Output Plugin
Description
When using the proxy option in the microsoft-sentinel-log-analytics-logstash-output-plugin, I am encountering the following error:
Dec 02 18:51:36 hostname logstash[2396]: [2024-12-02T18:51:36,310][ERROR][logstash.outputs.microsoftsentineloutput][g2s-sentinel-output[9a3ac9c55d9897e27bf590bfe56dce53 22828f8900b3dea710818f7b7d8676ac] Error while authenticating with AAD ('https://login.microsoftonline.com'), retrying in 10 seconds.
Upon inspecting the request sent to the proxy, it seems that the request is missing the port. Below is the request extracted from the pcap:
We have tested the same proxy configuration in other setups using the default logstash/jvm.options, and did not encounter any issues.
fix / workaround
The issue seems to come from the date i have installed the plugin, between the release of sentinel output and my installation, excon have updated " omit_default_port " option ( excon/excon@a4b5b44 ).
the workaround i used is adding ":include_default_port => true" as follow:
file sentinel_la/logAnalyticsAadTokenProvider.rb, line 67
can you please take a look ? maybe fix the requirement and modify the Excon version needed ( not 0.8+ but a known working version ) or update with the provided fix.
Steps to Reproduce
Install the plugin version 1.1.3 with excon
Configure the proxy option.
Start Logstash.
Observe the error message in the logs.
Expected Behavior
The proxy request should include all the necessary information for a successful connection to login.microsoftonline.com.
Actual Behavior
The request sent to the proxy appears to be missing required headers or information, resulting in a TCP RST.
Additional Information
Plugin version: microsoft-sentinel-log-analytics-logstash-output-plugin:1.1.3 (installed on 25/11/2024).
Logstash version: 8.16
The text was updated successfully, but these errors were encountered:
Issue with Proxy Option in Microsoft Sentinel Log Analytics Logstash Output Plugin
Description
When using the proxy option in the
microsoft-sentinel-log-analytics-logstash-output-plugin
, I am encountering the following error:Upon inspecting the request sent to the proxy, it seems that the request is missing the port. Below is the request extracted from the pcap:
it should be :
We have tested the same proxy configuration in other setups using the default
logstash/jvm.options
, and did not encounter any issues.fix / workaround
The issue seems to come from the date i have installed the plugin, between the release of sentinel output and my installation, excon have updated " omit_default_port " option ( excon/excon@a4b5b44 ).
the workaround i used is adding ":include_default_port => true" as follow:
file sentinel_la/logAnalyticsAadTokenProvider.rb, line 67
can you please take a look ? maybe fix the requirement and modify the Excon version needed ( not 0.8+ but a known working version ) or update with the provided fix.
Steps to Reproduce
Expected Behavior
The proxy request should include all the necessary information for a successful connection to
login.microsoftonline.com
.Actual Behavior
The request sent to the proxy appears to be missing required headers or information, resulting in a TCP RST.
Additional Information
microsoft-sentinel-log-analytics-logstash-output-plugin:1.1.3
(installed on 25/11/2024).The text was updated successfully, but these errors were encountered: