I am starting to wonder if there might be an issue with *.blob.core.windows.net being hardcoded as the API endpoint. In this particular situation, the storage account and event hub exist on Azure's government cloud *.blob.core.usgovcloudapi.net. Do you know if this might be hard coded within the module? For example, DNS lookups for: siemeventsclassic.blob.core.usgovcloudapi.net resolve just fine siemeventsclassic.blob.core.windows.net do not resolve
2020-04-09T09:57:59.444-0500 ERROR [azure-eventhub input] azureeventhub/input.go:116 -> github.com/elastic/beats/vendor/github.com/Azure/azure-pipeline-go/pipeline.NewError, /go/src/github.com/elastic/beats/vendor/github.com/Azure/azure-pipeline-go/pipeline/error.go:154
HTTP request failed
Get https://siemeventsclassic.blob.core.windows.net?comp=list&prefix=filebeat-siemazurediag&timeout=61: dial tcp: lookup siemeventsclassic.*blob.core.windows.net* on 192.168.111.2:53: no such host
{"connection string": "Endpoint=sb://siemeventhub.servicebus.usgovcloudapi.net/;SharedAccessKeyName=siemRead;SharedAccessKey=mybase64accesskey"}
I haven't tried, but I'd say that this could be a workaround, yes. You will need to recompile metricbeat. You can use mage package command to compile and generate packages ready to be used (it takes some time).
@jsoriano, thank you. maybe this will turn into a separate post but if I just wanted to recompile that one azure module, what would be the best way? do I just run "make package" within that directory and copy those files into an existing filebeat install? Thanks for any guidance!
You cannot recompile this input alone, it is included in the filebeat binary. I would recommend to use make package because it generates packages ready to be installed. mage package must be executed from the directory of the beat you want to compile, x-pack/filebeat directory in your case. Once the command finishes you will find the built packages in build/distributions.
You will need docker and mage, you can read how to install mage here: https://magefile.org/
Thanks @jsoriano. So my mage package completes successfully but I am just left with directories for each packages but not the actual binary packages themselves. Am I missing something. For example, the deb package is actually a directory with .tmpl files. Thanks again for all your help!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.