-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoMethodError: undefined method `length? #217
Comments
Hi Julian, |
I'm running into this problem as well.. data flows from the input for a while and then this exception is hit, eventually leading to a jvm heap exhaustion and restart of logstash. Note that I am using the plain codec in the input plugin, then cleaning up the string in the filter before converting it to json. This is because Azure NSG Flow Logs are adding some garbage in the json file that was causing the json codec to fail.... anyway. here is the exception I am hitting... I believe you just need to check and see if the object is null before attempt calling .length...
|
Hi, I have the same issue when all the flow logs have been ingested I get the follow error: Is there any fix for this ? Thanks! |
Did anyone manage to solve this, I get the same issue when parsing NSG flow logs. I cannot seem to see any difference in the json file (PT1H.json) within the storage container. [DEBUG] 2022-02-27 15:42:45.791 [logstash-pipeline-flush] PeriodicFlush - Pushing flush onto pipeline. Below is my logstash config input { |
In the last few days getting this error when using the logstash_input_azureblob plugin. Verified the credentials for the storage account so that is fine.
[2020-03-27T12:36:51,429][ERROR][logstash.inputs.logstashinputazureblob] Oh My, An error occurred. Error:undefined method
length?' for #String:0x1bc31a92: Trace: ["/usr/local/xxxxxx/logstash-7.2.0-xxxxxx/vendor/bundle/jruby/2.5.0/gems/logstash-input-azureblob-0.9.13-java/lib/logstash/inputs/azureblob.rb:210:inprocess'", "/usr/local/xxxxxx/logstash-7.2.0-xxxxxx/vendor/bundle/jruby/2.5.0/gems/logstash-input-azureblob-0.9.13-java/lib/logstash/inputs/azureblob.rb:151:in
run'", "/usr/local/xxxxxx/logstash-7.2.0-xxxxxx/logstash-core/lib/logstash/java_pipeline.rb:309:ininputworker'", "/usr/local/xxxxxx/logstash-7.2.0-xxxxxx/logstash-core/lib/logstash/java_pipeline.rb:302:in
block in start_input'"] {:exception=>#<NoMethodError: undefined methodlength?' for #<String:0x1bc31a92>>}
Can someone please help me understand what is the issue ?
The text was updated successfully, but these errors were encountered: