# Azure event hub failing with 'undefined method \`getEventHubPath' error

**URL:** <https://discuss.elastic.co/t/azure-event-hub-failing-with-undefined-method-geteventhubpath-error/195198>\
**Category:** Logstash\
**Created:** [August 14, 2019, 12:15pm UTC](https://discuss.elastic.co/t/azure-event-hub-failing-with-undefined-method-geteventhubpath-error/195198 "2019-08-14T12:15:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asad\_ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asad_ali/32/47894_2.png) [@asad\_ali](https://discuss.elastic.co/u/asad_ali)\
**Post date:** [August 14, 2019, 12:15pm UTC](https://discuss.elastic.co/t/azure-event-hub-failing-with-undefined-method-geteventhubpath-error/195198/1 "2019-08-14T12:15:18Z")

</div>

Hi,

My logstash config looks like

> input {  
> azure\_event\_hubs {  
> config\_mode =\> "basic"  
> event\_hub\_connections =\> ["Endpoint=sb://audit-ops-logs.servicebus.windows.net/;SharedAccessKeyName=azure-ls;SharedAccessKey=xxxxxx=;EntityPath=insights-operational-logs"]  
> threads =\> 4  
> decorate\_events =\> true  
> consumer\_group =\> "ls"  
> storage\_container =\> "testauditazurediag"  
> storage\_connection =\> "DefaultEndpointsProtocol=https;AccountName=testauditazurediag;AccountKey=xxx;[EndpointSuffix=core.windows.net](http://EndpointSuffix=core.windows.net)"  
> }  
> }
> 
> filter {  
> if [type] == "azure\_event\_hub" {  
> json {  
> source =\> "message"  
> }  
> split {  
> field =\> ["records"]  
> }  
> }  
> }
> 
> output {  
> elasticsearch {  
> hosts =\> ["[http://127.0.0.1:9200](http://127.0.0.1:9200)"]  
> index =\> "logstash-azure-%{+YYYY.MM.dd}"  
> user =\> "logstash\_internal"  
> password =\> "elk#123"  
> #document\_type =\> "%{[@metadata][type]}"  
> document\_type =\> "azure\_audit"  
> }  
> stdout  
> {  
> codec =\> rubydebug  
> }   
> }

**on running i get following o/p**

> n], condition[Error{condition=null, description='null', info=null}]  
> [2019-08-14T12:09:26,800][ERROR][logstash.inputs.azureeventhubs] Event Hub failed during initialization. {:event\_hub\_name=\>"insights-operational-logs", :exception=\>java.util.concurrent.ExecutionException: org.jruby.exceptions.NoMethodError: (NoMethodError) undefined method `getEventHubPath' for #Java::ComMicrosoftAzureEventprocessorhost::HostContext:0x1acc9f37, :backtrace=\>["java.util.concurrent.CompletableFuture.reportGet(java/util/concurrent/CompletableFuture.java:395)", "java.util.concurrent.CompletableFuture.get(java/util/concurrent/CompletableFuture.java:2070)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:62)", "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:567)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:425)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:292)", "root.logstash\_minus\_7\_dot\_1\_dot\_1.vendor.bundle.jruby.$2\_dot\_5\_dot\_0.gems.logstash\_minus\_input\_minus\_azure\_event\_hubs\_minus\_1\_dot\_1\_dot\_1.lib.logstash.inputs.azure\_event\_hubs.run(/root/logstash-7.1.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-azure\_event\_hubs-1.1.1/lib/logstash/inputs/azure\_event\_hubs.rb:430)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:295)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:274)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:270)", "java.lang.Thread.run(java/lang/Thread.java:835)"]}

This seems to be **java** related, and not an configuration issue. Any help? Thanks

---

<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:** [September 11, 2019, 12:15pm UTC](https://discuss.elastic.co/t/azure-event-hub-failing-with-undefined-method-geteventhubpath-error/195198/2 "2019-09-11T12:15:28Z")

</div>

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