logstash-plugins / logstash-input-couchdb_changes

This plugin captures the _changes stream from a CouchDB instance
Apache License 2.0
27 stars 22 forks source link

@metadata[action] throws error #14

Open jblachly opened 9 years ago

jblachly commented 9 years ago

Going by the instructions on this page: https://www.elastic.co/guide/en/logstash/current/configuration.html

when including the line action => "%{[@metadata][action]}"

in the logstash config, logstash repeatedly throws errors and is unable to move any of the docs from couchdb_changes to elasticsearch.

I imagine, but do not know for sure, that this is a problem with the @metadata set by the couchdb_changes plugin; if in fact this is a problem with the elasticsearch output plugin instead, let me know so I can move this issue over there. I am not a ruby programmer and haven't time to dig in to narrow it down for sure, I'm afraid. Thank you in advance.

naro commented 9 years ago

I think it might be related to this problem (delete action) https://discuss.elastic.co/t/couchdb-plugin-set-dynamic-type-for-elasticsearch/2293/12 First of all I thought it is because of 'update' (from couch) or 'index' (allowed by elastic plugin) action name but after sorting out the delete, it works for me even with default "%{[@metadata][action]}"

naro commented 9 years ago

This issue is probably even more related to your problem: https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/195