Azure apim将日志发送到EventHub(选择的WebSocketConnection)。如何设置它?
我正在使用连接的后端API(应用程序服务)的一个APIM资源。这是我为阅读EventHub的数据所做的整个设置,该数据是通过APIM从应用程序服务发送的。
设置应用程序服务并将其连接到APIM。
在APIM的诊断设置中,选择要发送日志的EventHub。选择选项“ WebSocketConnectionLogs”。
创建一个Azure函数,以通过EventHub触发从EventHub读取数据。
现在,我已经知道了“对数到事件”的策略,但是我的公司没有使用它。他们要求我根据上述过程进行设置。我这样做了,但是功能没有选择任何东西。我这里有什么我缺少的吗?有什么帮助会很棒。
I am using one APIM resource with a back-end api(app service) connected. Here is the whole setup I did to read the data from eventhub which is sent from the app service through APIM.
Setup App Service and connect it to APIM.
In Diagnostic Settings of APIM, select the EventHub you want to send the logs. Select the option 'WebSocketConnectionLogs'.
Create an Azure function to read the data from EventHub through EventHub Trigger.
Now that I am aware of 'log-to-event' policy for this, but my company is not using that. They have asked me to setup according to the above process. I did that, but the function is not picking anything. Is there anything I am missing here?Any help would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
希望您已经完成了前两个步骤。但是,在APIM将消息发送到事件中心时,我们有一些限制。根据 msdoc ,
在第三步中,您必须使用 azure事件中心输出输出/ azure事件hub triggers triggers triggers 在Azure功能中,我们必须具有读取访问权限到基础事件中心以设置触发器。请参阅 msdoc 有关更多信息。
I hope you already done the first 2 steps. But while sending the messages to event hub from APIM we have some limitations. As per the MSDOC,
In the third step you have to use the Azure Event Hub output binding / Azure Event Hub Triggers in an Azure Function we must have the read access to the underlying event hub to set up trigger. Refer MSDOC for more information.