How can i check data of mapping field in elasticsearch with logstash

yes of course and i use it , but i have not any correct output and logstash return this error

this is my config :

input {
rabbitmq {
user => "user"
password => "pass"
exchange => "exc"
queue => "que"
durable => true
host => "ip address"
subscription_retry_interval_seconds => 5
codec => "json"
}
}

filter {
elasticsearch {
hosts => ["192.168.1.6:9200","192.168.1.7:9200"]
codec => "json"
index => "test"
document_type => "user"
query => "{"query":{"match":{"firstname": "myname1"}}}"
}
}

output {
file {
id => "All Input Data Logger"
path => "/logstash-repository/Log/rabbitmq_debug_events-%{+YYYY-MM-dd}"
codec => rubydebug
}
}

and return this error

[ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration.", :backtrace=>

can you please tell me how can i solve this problem |?