azure-eventhub

Output JSON in Azure Function Logs

久未见 提交于 2020-07-23 06:30:51
问题 We'd like to send structured log data from our Azure Functions to Event Hub. So I set up Serilog to log to the console and include all the info I wanted. But now I come to try this in Azure, all of my nice Json formatted data from Serilog is being ignored - and only the standard ILogger output is being shown :( Here's the config I'm using in Startup.ConfigureServices . services.AddLogging(loggingBuilder => loggingBuilder.AddSerilog(CreateLogger())); private static Logger CreateLogger() { var

Send events to Azure event hub using Python

旧巷老猫 提交于 2020-07-22 12:05:09
问题 Below is the sample code copied from Microsoft's site. I did replace the Event Hubs <namespace> , <eventhub> , <AccessKeyName> , and <primary key value> with the required values. import sys import logging import datetime import time import os from azure.eventhub import EventHubClient, Sender, EventData logger = logging.getLogger("azure") # Address can be in either of these formats: # "amqps://<URL-encoded-SAS-policy>:<URL-encoded-SAS-key>@<namespace>.servicebus.windows.net/eventhub" # "amqps:

Send Azure Blob Storage event notifications to Event Hubs on another account

对着背影说爱祢 提交于 2020-06-12 15:33:59
问题 In Azure, I'm trying to send event notifications from a Storage Account in one Active Directory to an Event Hub in another Active Directory. I'm having trouble figuring out how to share/link the resource. In AWS, I was able to accomplish this by creating a role in the receiver account, adding the source account by ID, adding the SQS Writer resource permission, and adding the SQS Queue ARN as the bucket notification destination. I'm guessing something similar is possible in Azure.. At the

Send Azure Blob Storage event notifications to Event Hubs on another account

怎甘沉沦 提交于 2020-06-12 15:26:14
问题 In Azure, I'm trying to send event notifications from a Storage Account in one Active Directory to an Event Hub in another Active Directory. I'm having trouble figuring out how to share/link the resource. In AWS, I was able to accomplish this by creating a role in the receiver account, adding the source account by ID, adding the SQS Writer resource permission, and adding the SQS Queue ARN as the bucket notification destination. I'm guessing something similar is possible in Azure.. At the

No incoming messages to Event Hub

混江龙づ霸主 提交于 2020-05-30 08:24:10
问题 Couldn't see the incoming messages coming through from Azure AD logs into Azure Event Hub. I have followed the below article. https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/tutorial-azure-monitor-stream-logs-to-event-hub Can someone please let me know if there's anything I missed here. Below are the images AAD configuration to stream logs to Event Hub No incoming messages in Azure Event hub 回答1: I tried to read messages using Azure portal tools, but in the end I

Azure webjob using .NET core 3.1

三世轮回 提交于 2020-05-17 06:05:33
问题 I am writing a azure webjob using .net core 3.1 and I am getting the following runtime exception: InvalidOperationException: %EventHubName% does not resolve to a value. where my trigger looks like: ProcessEvent([EventHubTrigger("%EventHubName%", ConsumerGroup = "%ConsumerGroupName%")] EventData eventData) I have registered the configuration in program.cs I have added appSettings.environment.json file which contains something like: "EventHubConfig": { "EventHubConnectionString": "..",

Microsoft Azure Service Bus/Event Hub: No messages, only requests

邮差的信 提交于 2020-05-14 12:34:49
问题 I'm sending messages through HTTP POST to my Azure Event Hub (to use with IoT Hub and a Blob storage). These are the HTTP call's settings: Every time I send a message, I get a request, but no message. I've tried: different SAS keys and owners different headers as well as no headers I've added the headers after finding this question. I also made sure to check the permissions, as it was suggested there, but they were already set to the necessary level. Noteworthy: for some reason, it did work

Ingesting data from a function, to an event hub, to Azure Data Explorer?

落花浮王杯 提交于 2020-04-18 07:07:32
问题 I've got some JSON data coming into an IOT Hub, which then triggers a function to un-nest the data. The function sends this data to an Event Hub, and then the data is supposed to be ingested by Azure Data Explorer according to the mapping I've set up. The problem is that no data makes it to the data explorer; the only way it will receive data with a mapping is by setting the origin as an event hub that is receiving information by custom routing. Is it possible to ingest data in the data

Ingesting data from a function, to an event hub, to Azure Data Explorer?

99封情书 提交于 2020-04-18 07:07:10
问题 I've got some JSON data coming into an IOT Hub, which then triggers a function to un-nest the data. The function sends this data to an Event Hub, and then the data is supposed to be ingested by Azure Data Explorer according to the mapping I've set up. The problem is that no data makes it to the data explorer; the only way it will receive data with a mapping is by setting the origin as an event hub that is receiving information by custom routing. Is it possible to ingest data in the data

Is it guaranteed that sequence numbers will increment by 1 EventHub?

孤街浪徒 提交于 2020-04-17 22:39:30
问题 I'm consuming from a single Azure EventHub partition, using the PartitionReceiver class in Java. I'm trying to understand the x-opt-sequence-number SystemProperty that is available in each EventData object that I receive. Is it guaranteed that the sequence numbers increment by 1 per EventData consumed and that each possible sequence number exists in the partition? For example if I've consumed an Event with sequence number 5 and another with 10, based on this must there exist events with