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

Fix SendTelemetryHandler protocol error regex in check agent log #3205

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

maddieford
Copy link
Contributor

Description

We ignore these errors in check agent log (up to 2 occurrences):
2024-08-31T08:13:23.198863Z ERROR SendTelemetryHandler ExtHandler Event: name=WALinuxAgent, op=ReportEventErrors, message=DroppedEventsCount: 1
Reasons (first 5 errors): [ProtocolError] [Wireserver Exception] [ProtocolError] [Wireserver Failed] URI http://168.63.129.16/machine?comp=telemetrydata [HTTP Failed] Status Code 400: Traceback (most recent call last):
File "bin/WALinuxAgent-9.9.9.9-py3.9.egg/azurelinuxagent/common/protocol/wire.py", line 567, in call_wireserver
raise ProtocolError(msg)
azurelinuxagent.common.exception.ProtocolError: [ProtocolError] [Wireserver Failed] URI http://168.63.129.16/machine?comp=telemetrydata [HTTP Failed] Status Code 400

Regex was not capturing this error. '/' characters need to be escaped

Issue #


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

@maddieford maddieford merged commit a12a6fb into Azure:develop Sep 5, 2024
11 checks passed
@maddieford maddieford deleted the check_log_regex branch September 5, 2024 18:51
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

Successfully merging this pull request may close these issues.

3 participants