Skip to content

doc_as_upsert and other update options does not intitalized if action set dinamicaly #383

Closed
@kiryam

Description

@kiryam

https://github.com/logstash-plugins/logstash-output-elasticsearch/blob/master/lib/logstash/outputs/elasticsearch/http_client_builder.rb#L38

common_options.merge! update_options if params["action"] == 'update'

Client class creating while plugin initialization and if option "action" set like this:
action => "%{[@metadata][action]}" i.e. "dynamically"

All "update options" will not set

update_options = {
        :doc_as_upsert => params["doc_as_upsert"],
        :script_var_name => params["script_var_name"],
        :script_type => params["script_type"],
        :script_lang => params["script_lang"],
        :scripted_upsert => params["scripted_upsert"]
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions