How to stream Activity Logs to Azure Event Hubs

Azure

Introduction

In this blog we are going to see how to stream activity logs of your azure subscription to a Event Hub.

  1. First create a service bus name since this is required to export the Activity Log
  2. Go to Activity Logs page and click Exportazure-event-hub-step-2
  3. Enter the service bus name and policyazure-event-hub-step-3
  4. Once the Export is done if you go to service bus resource you will not be able to see the event hubs since the new portal does not support that yetazure-event-hub-step-4
  5. To view the event hub that is created  you need to go to the old portal
  6. In the old portal you should see the event hub with name ‘insights-operational-logs’azure-event-hub-step-5

Conclusion

Once you create the event event you should be able to access it from other application using the proper connection string

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s