# Logstash Input from Firestore (Firebase) to Elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-input-from-firestore-firebase-to-elasticsearch/241764>\
**Category:** Logstash\
**Created:** [July 18, 2020, 10:18pm UTC](https://discuss.elastic.co/t/logstash-input-from-firestore-firebase-to-elasticsearch/241764 "2020-07-18T22:18:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![estack](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/estack/32/53331_2.png) [@estack](https://discuss.elastic.co/u/estack)\
**Post date:** [July 18, 2020, 10:18pm UTC](https://discuss.elastic.co/t/logstash-input-from-firestore-firebase-to-elasticsearch/241764/1 "2020-07-18T22:18:48Z")

</div>

Hi Guys,

I have tried to implement a logstash config by installing a custom logstash input from the link below:

> **[consulthys/logstash-input-firebase](https://github.com/consulthys/logstash-input-firebase)**
>
> A logstash input plugin for reading data from Firebase realtime databases - consulthys/logstash-input-firebase

I have made necessary configs, but getting below error:

][FATAL][logstash.runner] An unexpected error occurred! {:error=\>java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 10, :backtrace=\>["org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:541)", "org.jruby.runtime.ThreadContext.currentBinding(ThreadContext.java:1143)", "org.jruby.RubyEnumerable.each(RubyEnumerable.java:131)", "org.jruby.RubyEnumerable.countCommon(RubyEnumerable.java:180)", "org.jruby.RubyEnumerable.count(RubyEnumerable.java:161)", "org.jruby.RubyEnumerable$INVOKER$s$count.call(RubyEnumerable$INVOKER$s$count.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneBlock.call(JavaMethod.java:575)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207)", "opt.bitnami.logstash.vendor.bundle.jruby.$2\_dot\_5\_dot\_0.gems.promise\_pool\_minus\_0\_dot\_9\_dot\_2.lib.promise\_pool.timer.RUBY$block$group\_new$2(/opt/bitnami/logstash/vendor/bundle/jruby/2.5.0/gems/promise\_pool-0.9.2/lib/promise\_pool/timer.rb:28)", "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)"]}  
[2020-07-18T22:12:02,575][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

Below is my logstash config file

input  
{  
firebase {  
url =\> "[https://test.firebaseio.com](https://test.firebaseio.com)"  
refs =\> {  
deals =\> {  
path =\> "orders"  
}  
}  
}  
}  
output  
{  
elasticsearch  
{  
hosts =\> ["127.0.0.1:9200"]  
document\_id =\> "%{logstash\_checksum}"  
index =\> "logstash-%{+YYYY.MM.dd}"  
}  
}

---

<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:** [August 15, 2020, 10:20pm UTC](https://discuss.elastic.co/t/logstash-input-from-firestore-firebase-to-elasticsearch/241764/2 "2020-08-15T22:20:47Z")

</div>

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