# Want to send a few data fileds to Kafka

**URL:** <https://discuss.elastic.co/t/want-to-send-a-few-data-fileds-to-kafka/137903>\
**Category:** Logstash\
**Created:** [June 29, 2018, 5:26am UTC](https://discuss.elastic.co/t/want-to-send-a-few-data-fileds-to-kafka/137903 "2018-06-29T05:26:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seungtae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seungtae/32/71413_2.png) [@seungtae](https://discuss.elastic.co/u/seungtae)\
**Post date:** [June 29, 2018, 5:26am UTC](https://discuss.elastic.co/t/want-to-send-a-few-data-fileds-to-kafka/137903/1 "2018-06-29T05:26:35Z")

</div>

I will connect logstash and Kafka. So now I'm trying to test. It works well this time..

But, logstash sends its all of data fields. Can I choose a few data fileds what I want to send Kafka?

Is there a function in Kafka output plugin about what I said?

Very simple and basic output plugin I use.

```
output {		
	kafka {
		codec => rubydebug
		topic_id => "test"
	}
}
```

---

<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 27, 2018, 5:26am UTC](https://discuss.elastic.co/t/want-to-send-a-few-data-fileds-to-kafka/137903/2 "2018-07-27T05:26:35Z")

</div>

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