# How to read logs contineously from azure evnet hub

**URL:** <https://discuss.elastic.co/t/how-to-read-logs-contineously-from-azure-evnet-hub/315660>\
**Category:** Logstash\
**Created:** [October 3, 2022, 7:27am UTC](https://discuss.elastic.co/t/how-to-read-logs-contineously-from-azure-evnet-hub/315660 "2022-10-03T07:27:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anusha\_Kusanghi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anusha_kusanghi/32/98109_2.png) [@Anusha\_Kusanghi](https://discuss.elastic.co/u/Anusha_Kusanghi)\
**Post date:** [October 3, 2022, 7:27am UTC](https://discuss.elastic.co/t/how-to-read-logs-contineously-from-azure-evnet-hub/315660/1 "2022-10-03T07:27:40Z")

</div>

Hie Everyone,

I have an integration where I have to read logs that are generated/store in azure event hub.

Will the below configuration will read logs as an when new log is generated in the hub ?  
If now what I'm looking for is , If a new log is generated in azureeventhub I want the logs to be reflected in elasticsearch in no time. how can that be achieved ?

```auto
input {
   azure_event_hubs {
     config_mode => "advanced"
     threads => 2
     decorate_events => true
     consumer_group => "test123"
                 event_hubs => [
        {"audit" => {
         event_hub_connection => "Endpoint=sb://test123.servicebus.windows.net/;SharedAccessKeyName=AuditLogsSASPolicy;SharedAccessKey=abcfdjrlgjjutlkakjakmnkijj=;EntityPath=audit"
                initial_position => "beginning"
                
        }}
     ]
   }
}

output{
stdout{}
 }

```

Thanks is advance.

Regards,  
Anusha K

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 31, 2022, 7:27am UTC](https://discuss.elastic.co/t/how-to-read-logs-contineously-from-azure-evnet-hub/315660/2 "2022-10-31T07:27:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
