# Selective fields per output

**URL:** <https://discuss.elastic.co/t/selective-fields-per-output/2046>\
**Category:** Logstash\
**Created:** [June 5, 2015, 9:30pm UTC](https://discuss.elastic.co/t/selective-fields-per-output/2046 "2015-06-05T21:30:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akumar](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Akumar](https://discuss.elastic.co/u/Akumar)\
**Post date:** [June 5, 2015, 9:30pm UTC](https://discuss.elastic.co/t/selective-fields-per-output/2046/1 "2015-06-05T21:30:29Z")

</div>

I would like to drop certain fields from elasticsearch indexing but retain them for output to another destination.

I have two use cases

1. Some fields contain detail that I only want for an investigation and do not want to index
2. Metrics fields that I want to send to a graphite aggregator and not to an Index.

Is there a way to select "if output == elasticsearch then drop fields f1, f2, f3 ?

Thanks

Ash Kumar

---

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [December 31, 2015, 5:34pm UTC](https://discuss.elastic.co/t/selective-fields-per-output/2046/2 "2015-12-31T17:34:27Z")

</div>

It seems not possible right now ;-(

There are some workarounds, such as:

- Use clone filter ([https://www.elastic.co/guide/en/logstash/current/plugins-filters-clone.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-clone.html)) and mutate filter
- Use 3 logstash instances ! 😄
  - 1 ==\> output in queue
  - 2 ==\> input from queue ==\> output to ES

- Write your own plugin, it's dramatically easy, and the best way to fit your needs

---

<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:** [July 6, 2017, 5:17am UTC](https://discuss.elastic.co/t/selective-fields-per-output/2046/3 "2017-07-06T05:17:05Z")

</div>


