# How can i send particular field to csv using logstash 2.4.0?

**URL:** <https://discuss.elastic.co/t/how-can-i-send-particular-field-to-csv-using-logstash-2-4-0/76403>\
**Category:** Logstash\
**Created:** [February 24, 2017, 1:45pm UTC](https://discuss.elastic.co/t/how-can-i-send-particular-field-to-csv-using-logstash-2-4-0/76403 "2017-02-24T13:45:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [February 24, 2017, 1:45pm UTC](https://discuss.elastic.co/t/how-can-i-send-particular-field-to-csv-using-logstash-2-4-0/76403/1 "2017-02-24T13:45:36Z")

</div>

I have so many fields in logstash which i matched with grok filter but in that i want only one field to be taken to csv.

fields like timestamp,item name,cost,description etc..  
in that i want only item name to be sent to csv .  
May i know in mutate which feature i have to use to get this done/

Thanks..

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 28, 2017, 7:04am UTC](https://discuss.elastic.co/t/how-can-i-send-particular-field-to-csv-using-logstash-2-4-0/76403/2 "2017-02-28T07:04:55Z")

</div>

If you use the csv output there's a `fields` option that allows you to choose which fields to include in the CSV output.

---

<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:** [March 28, 2017, 7:05am UTC](https://discuss.elastic.co/t/how-can-i-send-particular-field-to-csv-using-logstash-2-4-0/76403/3 "2017-03-28T07:05:02Z")

</div>

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