Skip to content
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

Synology drive sqlite db #15

Open
Onc3k opened this issue May 10, 2021 · 0 comments
Open

Synology drive sqlite db #15

Onc3k opened this issue May 10, 2021 · 0 comments

Comments

@Onc3k
Copy link

Onc3k commented May 10, 2021

Hello I'm using OSS Logstash 7.10.1 and I tryed to find solution how to get logs from "Synology drive" it's appliaction on Synology NAS. Synology drive doesn't have option for sending logs to syslog and in Synology Log center aren't showed, so I found, that these logs are located in .sqlite db, so I tryed to use this plugin for reading these logs, but it doesn't work, when I put full path with db object it give me back error:

[2021-05-10T10:45:16,895][ERROR][logstash.javapipeline ][testpipeline] A plugin had an unrecoverable error. Will restart this plugin.
Pipeline_id:testpipeline
Plugin: <LogStash::Inputs::Sqlite path=>"/mnt/sqlite/sqlitenas/log-db.sqlite", id=>"8ababd92a8440467ed8c706e1a4599897c4454105a6797b90b2db96c0800f547", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_085b97f7-cd03-496d-89ab-2282eb84300a", enable_metric=>true, charset=>"UTF-8">, batch=>5>
Error: Missing Converter handling for full class name=org.jruby.gen.RubyObject31, simple name=RubyObject31
Exception: Java::OrgLogstash::MissingConverterException
Stack: org.logstash.Valuefier.fallbackConvert(Valuefier.java:118)
org.logstash.Valuefier.convert(Valuefier.java:96)
org.logstash.ConvertedMap$1.visit(ConvertedMap.java:55)
org.logstash.ConvertedMap$1.visit(ConvertedMap.java:49)
org.jruby.RubyHash.visitLimited(RubyHash.java:698)
org.jruby.RubyHash.visitAll(RubyHash.java:683)
org.logstash.ConvertedMap.newFromRubyHash(ConvertedMap.java:89)
org.logstash.ext.JrubyEventExtLibrary$RubyEvent.ruby_initialize(JrubyEventExtLibrary.java:92)
usr.share.logstash.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_input_minus_sqlite_minus_3_dot_0_dot_4.lib.logstash.inputs.sqlite.RUBY$block$run$2(/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-sqlite-3.0.4/lib/logstash/inputs/sqlite.rb:160)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:148)
org.jruby.runtime.BlockBody.yield(BlockBody.java:106)
org.jruby.runtime.Block.yield(Block.java:184)
org.jruby.RubyArray.each(RubyArray.java:1809)
usr.share.logstash.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_input_minus_sqlite_minus_3_dot_0_dot_4.lib.logstash.inputs.sqlite.RUBY$block$run$1(/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-sqlite-3.0.4/lib/logstash/inputs/sqlite.rb:159)
org.jruby.runtime.CompiledIRBlockBody.yieldDirect(CompiledIRBlockBody.java:148)
org.jruby.runtime.BlockBody.yield(BlockBody.java:106)
org.jruby.runtime.Block.yield(Block.java:184)
org.jruby.RubyHash$11.visit(RubyHash.java:1434)
org.jruby.RubyHash$11.visit(RubyHash.java:1431)
org.jruby.RubyHash.visitLimited(RubyHash.java:698)
org.jruby.RubyHash.visitAll(RubyHash.java:683)
org.jruby.RubyHash.iteratorVisitAll(RubyHash.java:1391)
org.jruby.RubyHash.each_pairCommon(RubyHash.java:1426)
org.jruby.RubyHash.each(RubyHash.java:1415)
usr.share.logstash.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_input_minus_sqlite_minus_3_dot_0_dot_4.lib.logstash.inputs.sqlite.RUBY$method$run$0(/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-sqlite-3.0.4/lib/logstash/inputs/sqlite.rb:153)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:106)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:140)
org.jruby.ir.targets.InvokeSite.fail(InvokeSite.java:278)
usr.share.logstash.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$inputworker$0(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:405)
org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:106)
org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:140)
org.jruby.ir.targets.InvokeSite.fail(InvokeSite.java:278)
usr.share.logstash.logstash_minus_core.lib.logstash.java_pipeline.RUBY$block$start_input$1(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:396)
org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:138)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)
org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:52)
org.jruby.runtime.Block.call(Block.java:139)
org.jruby.RubyProc.call(RubyProc.java:318)
org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:105)
java.base/java.lang.Thread.run(Thread.java:834)

I read something about path to db instead db object, so I tryed path with "*" at the end, after pipeline reload no errors, but still no data :). Sqlite3 is installed, all permissions are allowded, I don't have any new idea what I can do, so maybe it doesn't work with it and could help make some update or if have someone any advice, I will be really happy. Thanks for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant