# Elastic Search Logstash how to query all fields and get all fields into pipeline?

**URL:** <https://discuss.elastic.co/t/elastic-search-logstash-how-to-query-all-fields-and-get-all-fields-into-pipeline/301810>\
**Category:** Logstash\
**Created:** [April 7, 2022, 12:19am UTC](https://discuss.elastic.co/t/elastic-search-logstash-how-to-query-all-fields-and-get-all-fields-into-pipeline/301810 "2022-04-07T00:19:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MLsuper](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MLsuper](https://discuss.elastic.co/u/MLsuper)\
**Post date:** [April 7, 2022, 12:19am UTC](https://discuss.elastic.co/t/elastic-search-logstash-how-to-query-all-fields-and-get-all-fields-into-pipeline/301810/1 "2022-04-07T00:19:22Z")

</div>

So I have a logstash pipeline that is currently setup with this: for a query

```auto
input {
  hosts => ...
  query => '{ "query": {
                          "match_all": {}
    }}'
  target => "[@metasource][_source]"
  index=>...
  user=>...
  password=>...

}

 output{
  hosts => ...
  user=>...
  password=>...
  index=>...

}

```

I have a Elasticsearch input for a existing index and my output is an Elasticsearch output for a new index

however when I start the pipeline I only receive documents with default fields, I want all the fields of each document in the existing index.

**So basically I want my input and output index the same**  
**so both indexes same replica**

**also and how would I want "specific fields"?**

thank you so much please!

---

<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:** [May 5, 2022, 12:19am UTC](https://discuss.elastic.co/t/elastic-search-logstash-how-to-query-all-fields-and-get-all-fields-into-pipeline/301810/2 "2022-05-05T00:19:45Z")

</div>

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