Azure Event Hub

%3CLINGO-SUB%20id%3D%22lingo-sub-2436307%22%20slang%3D%22en-US%22%3EAzure%20Event%20Hub%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2436307%22%20slang%3D%22en-US%22%3E%3CP%3EOnce%20we%20enable%20the%20diagnostics%20settings%20for%20Azure%20Windows%20%2F%20Azure%20Linux%20machines%2C%20need%20to%20move%20the%20Events%20onto%20Azure%20Event%20Hub.%20Currently%2C%20there%20are%20no%20direct%20option%2C%20how%20we%20can%20move%20the%20data.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2438794%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Event%20Hub%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2438794%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fevent-hubs%2Fevent-hubs-diagnostic-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fevent-hubs%2Fevent-hubs-diagnostic-logs%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20can%20stream%20to%20an%20event%20hub%20directly%2C%20under%20Diagnostic%20settings.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2439019%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Event%20Hub%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2439019%22%20slang%3D%22en-US%22%3EActually%20I%20am%20looking%20for%20only%20specific%20logs.%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20Windows%20%2F%20Application%20%2F%20System%3CBR%20%2F%3E2.%20All%20the%20success%20and%20failure%20login%20attempts%3CBR%20%2F%3E3.%20Would%20like%20to%20capture%20diagnostics%20agent%20logs%20too%3CBR%20%2F%3E%3CBR%20%2F%3EI%20do%20not%20want%20to%20capture%20any%20performance%20counters.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Once we enable the diagnostics settings for Azure Windows / Azure Linux machines, need to move the Events onto Azure Event Hub. Currently, there are no direct option, how we can move the data.

4 Replies
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-diagnostic-logs

You can stream to an event hub directly, under Diagnostic settings.
Actually I am looking for only specific logs.

1. Windows / Application / System
2. All the success and failure login attempts
3. Would like to capture diagnostics agent logs too

I do not want to capture any performance counters.

You can install the MMA agent and configure Log Analytics to capture the event logs and untick the performance counters:

https://docs.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-windows-events

I haven't done it, but this might be worth a read: https://docs.microsoft.com/en-us/azure/azure-monitor/logs/logs-data-export?tabs=portal
Thanks for the prompt response.
I am getting closer now. I was going through the given link. found some useful content.

As Diagnostics settinngs doesn't provide any direct method to send data from storage account to event hub.
We can configure one or more data sinks that send data to additional locations.

I am not clear, where from Azure portal I need to change or modify the code. under which section. neigther I am able to see this under storage account nor Event Hub.

https://docs.microsoft.com/en-us/azure/azure-monitor/agents/diagnostics-extension-stream-event-hubs