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

Filebeat 7.8 Azure Module - unsupported protocol scheme error. #19322

Closed
kevinserafin opened this issue Jun 22, 2020 · 3 comments
Closed

Filebeat 7.8 Azure Module - unsupported protocol scheme error. #19322

kevinserafin opened this issue Jun 22, 2020 · 3 comments
Assignees
Labels
Team:Platforms Label for the Integrations - Platforms team

Comments

@kevinserafin
Copy link

  # All logs
  activitylogs:
    enabled: true
    var:
      eventhub: "azure-control"
      consumer_group: "$Default"
      connection_string: "Endpoint=sb://myeventhub.servicebus.windows.net/;SharedAccessKeyName=filebeat;SharedAccessKey=mySASkey"
      storage_account: "mystorageaccount"
      storage_account_key: "mystorageaccountkey"

  auditlogs:
    enabled: true
    var:
      eventhub: "azure-adaudit"
      consumer_group: "$Default"
      connection_string: "Endpoint=sb://myeventhub.servicebus.windows.net/;SharedAccessKeyName=filebeat;SharedAccessKey=mySASkey"
      storage_account: "mystorageaccount"
      storage_account_key: "mystorageaccountkey"
  signinlogs:
    enabled: true
    var:
      eventhub: "azure-signin"
      consumer_group: "$Default"
      connection_string: "Endpoint=sb://myeventhub.servicebus.windows.net/;SharedAccessKeyName=filebeat;SharedAccessKey=mySASkey"
      storage_account: "mystorageaccount"
      storage_account_key: "mystorageaccountkey"

After starting with debug logging the following error presents itself. Same configuration on 7.7 works fine.

2020-06-18T23:19:14.508-0500	INFO	cfgfile/reload.go:224	Loading of config files completed.
2020-06-18T23:19:14.508-0500	INFO	[azure-eventhub input]	azureeventhub/input.go:107	azure-eventhub input worker has started.	{"connection string": "Endpoint=sb://eventhub.servicebus.windows.net/;SharedAccessKeyName=azurefilebeat;SharedAccessKey=saskey..."}
2020-06-18T23:19:14.509-0500	ERROR	[azure-eventhub input]	azureeventhub/input.go:113	Get %3Cno%20value%3E/metadata/endpoints?api-version=1.0: unsupported protocol scheme ""	{"connection string": "Endpoint=sb://eventhub.servicebus.windows.net/;SharedAccessKeyName=azurefilebeat;SharedAccessKey=saskey..."}
2020-06-18T23:19:14.509-0500	INFO	[azure-eventhub input]	azureeventhub/input.go:114	azure-eventhub input worker has stopped.	{"connection string": "Endpoint=sb://eventhub.servicebus.windows.net/;SharedAccessKeyName=azurefilebeat;SharedAccessKey=saskey..."}
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 22, 2020
@kevinserafin kevinserafin changed the title Filebeat 7.8 Azure Module - unsupported protocol scheme error. Filebeat 7.8 Azure Module - unsupported protocol scheme error. Team:Filebeat Jun 22, 2020
@kevinserafin kevinserafin changed the title Filebeat 7.8 Azure Module - unsupported protocol scheme error. Team:Filebeat Filebeat 7.8 Azure Module - unsupported protocol scheme error. Jun 22, 2020
@andresrc andresrc added the Team:Platforms Label for the Integrations - Platforms team label Jun 23, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 23, 2020
@narph
Copy link
Contributor

narph commented Jun 23, 2020

@kevinserafin , you might be hitting this #18890 where due to some internal changes no azure environment is selected. This has already been fixed but did not made it in 7.8.0 unfortunately.
Can you add the following setting:

resource_manager_endpoint:  ""

under each var block
this makes sure the default azure env (public) is selected.
Will make sure future 7.8 versions will contain a fix.

@kevinserafin
Copy link
Author

That did it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

No branches or pull requests

4 participants