dourong6054 2019-07-02 17:24
浏览 61

Azure Monitor活动日志未到达事件中心

I've created a Free Tier Azure account. I have events in my Azure Monitor Activity Log (Get Namespace Listkeys, etc) and clicking on these events allows me to see their JSON. I have selected "Export to Event Hub", selected "All regions", checked "Export to an event hub" and set up the namespace and policy name. The policy is the Root shared policy which has Manage, Send, Listen checked. This creates the "insights-operational-logs" event hub automatically.

I'm using the azure golang client (https://github.com/Azure/azure-event-hubs-go) to query this event hub but I'm not seeing the ActivityLog events in the client. I do receive diagnostic logs with categories like "Action", and "Write" but not the logs I can see in the ActivityLog monitor with categories like "Administrative".

What am I missing? Why are these events not reaching my client?

  • 写回答

1条回答 默认 最新

  • douyalin0847 2019-07-03 16:25
    关注

    It turns out the Activity Logs are actually mutated before they are sent to the event hub. There is a small reference to this in the documentation (https://docs.microsoft.com/en-us/azure/azure-monitor/platform/activity-log-export#activity-log-schema). I was expecting Activity Logs to be sent to the event hub as they appear in the JSON pane of the Activity Monitor, but that appears to not be how the "Export to Event Hub" feature works. The Activity Log is converted into several smaller "Action" logs that describe each stage of the Activity, i.e. whether it was "Started", "Succeeded", or "Failed". These together represent one Activity Log, but the schema is different.

    评论

报告相同问题?

悬赏问题

  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行