i'm trying to move some data to mongodb from elastic using elastic input plugin and csv ouput plugin and then mongoimport.
how can i define the fields types , including nested fields?
everything is showing up as strings in the csv output -> mongo
here is an example of _source data:
The csv output calls Array::to_csv, which is equivalent to CSV::generate_line, which is defined as returning a string. Anything in the csv file will be a string.
but got this error:
[2021-03-27T12:33:37,286][WARN ][logstash.outputs.mongodb ][main] MONGODB | Failed to handshake with [mongodb shard address]: ArgumentError: wrong number of arguments (given 2, expected 1)
any idea what's wrong in the config ? logstash-output-mongodb (3.1.6)
A similar error came up recently here. I do not have a good answer for it. If it threw an exception you could capture the init of that exception in a debugger, if it provided a stack trace you could review the code where it happens. However, we have neither.
Thanks @Badger
i was thinking logstash and its plugins are much more stabled and working out of the box.
especially for such basic use cases...
it's a bummer.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.