# Get data from excel file into elasticsearch

**URL:** <https://discuss.elastic.co/t/get-data-from-excel-file-into-elasticsearch/255926>\
**Category:** Logstash\
**Created:** [November 19, 2020, 5:10am UTC](https://discuss.elastic.co/t/get-data-from-excel-file-into-elasticsearch/255926 "2020-11-19T05:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111411](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111411/32/79280_2.png) [@111411](https://discuss.elastic.co/u/111411)\
**Post date:** [November 19, 2020, 5:10am UTC](https://discuss.elastic.co/t/get-data-from-excel-file-into-elasticsearch/255926/1 "2020-11-19T05:10:55Z")

</div>

hello.  
I'm try get data from excel file into elasticsearch.  
Message:  
Error: wrong number of arguments (given 0, expected 3)  
Exception: ArgumentError  
Stack: /Users/nguyenzuanbka/logstash-7.10.0/vendor/bundle/jruby/2.5.0/gems/filewatch-ext-excel-0.2.0/lib/filewatch/ext/tailbase.rb:33:in `initialize' /Users/nguyenzuanbka/logstash-7.10.0/vendor/bundle/jruby/2.5.0/gems/filewatch-ext-excel-0.2.0/lib/filewatch/ext/xlsxtail.rb:10:in `initialize'  
/Users/nguyenzuanbka/logstash-7.10.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-xlsx-2.1.0/lib/logstash/inputs/xlsx.rb:134:in `run' /Users/nguyenzuanbka/logstash-7.10.0/logstash-core/lib/logstash/java_pipeline.rb:405:in `inputworker'  
/Users/nguyenzuanbka/logstash-7.10.0/logstash-core/lib/logstash/java\_pipeline.rb:396:in `block in start\_input'  
[2020-11-19T13:59:55,875][ERROR][logstash.javapipeline][main][d01b121d30d447d892f576f323f815b3a8fd97aea112c54320caeaff178dd96d] A plugin had an unrecoverable error. Will restart this plugin.  
Pipeline\_id:main  
Plugin: \<LogStash::Inputs::Xlsx start\_position=\>"beginning", path=\>["/Users/nguyenzuanbka/Documents/duan.xlsx"], id=\>"d01b121d30d447d892f576f323f815b3a8fd97aea112c54320caeaff178dd96d", type=\>"xlsx", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Excel id=\>"excel\_9b1313d2-38bd-4907-af99-c0eed3f0bc8c", enable\_metric=\>true, charset=\>"UTF-8"\>, stat\_interval=\>1, discover\_interval=\>15, sincedb\_write\_interval=\>15, progressdb=\>false, progressdb\_del=\>false\>

my conf is as below:  
input {  
xlsx {  
path =\> ["/Users/nguyenzuanbka/Documents/duan.xlsx"]  
start\_position =\> "beginning"  
type =\> "xlsx"  
}  
}  
filter {  
csv {  
columns =\> ["date","user\_id","transfer","source","destination","price"]  
separator =\> ";"  
}  
date {  
match =\> ["date", "YYYYMMdd"]  
}  
mutate {  
convert =\> { "price" =\> "integer"}  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "excel"  
}  
}  
Any suggestion is deeply appreciated.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 19, 2020, 5:49am UTC](https://discuss.elastic.co/t/get-data-from-excel-file-into-elasticsearch/255926/2 "2020-11-19T05:49:36Z")

</div>

Welcome to our community! 😃

The `xlsx` input isn't one that we directly support unfortunately. You might find someone that has used it that can help, otherwise you may need to speak to the developer directly.

---

<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:** [December 17, 2020, 5:49am UTC](https://discuss.elastic.co/t/get-data-from-excel-file-into-elasticsearch/255926/3 "2020-12-17T05:49:38Z")

</div>

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