The plugin will fail and provide the following error when the storage_container value does not conform to an EventHub name.
The error will look like:
{:event_hub_name=>"valid-eventhub-name", :exception=>java.lang.IllegalArgumentException: EventHub names must conform to the following rules to be able to use it with EventProcessorHost: Must start with a letter or number, and can contain only letters, numbers, and the dash (-) character. Every dash (-) character must be immediately preceded and followed by a letter or number; consecutive dashes are not permitted in container names. All letters in a container name must be lowercase. Must be from 3 to 63 characters long., :backtrace=>["com.microsoft.azure.eventprocessorhost.AzureStorageCheckpointLeaseManager.initialize(com/microsoft/azure/eventprocessorhost/AzureStorageCheckpointLeaseManager.java:112)", "com.microsoft.azure.eventprocessorhost.EventProcessorHost.registerEventProcessorFactory(com/microsoft/azure/eventprocessorhost/EventProcessorHost.java:464)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:423)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:290)", "usr.share.logstash.vendor.bundle.jruby.$2_dot_3_dot_0.gems.logstash_minus_input_minus_azure_event_hubs_minus_1_dot_0_dot_4.lib.logstash.inputs.azure_event_hubs.block in run(/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-azure_event_hubs-1.0.4/lib/logstash/inputs/azure_event_hubs.rb:430)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)"...
While the same rules apply to blob containers, the error is saying (and showing) the valid EventHub name, not the container name.
The plugin will fail and provide the following error when the
storage_container
value does not conform to an EventHub name.The error will look like:
While the same rules apply to blob containers, the error is saying (and showing) the valid EventHub name, not the container name.