# Sending logs as it is to Kafka

**URL:** <https://discuss.elastic.co/t/sending-logs-as-it-is-to-kafka/54129>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [June 28, 2016, 8:38am UTC](https://discuss.elastic.co/t/sending-logs-as-it-is-to-kafka/54129 "2016-06-28T08:38:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![treff7es1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/treff7es1/32/9708_2.png) [@treff7es1](https://discuss.elastic.co/u/treff7es1)\
**Post date:** [June 28, 2016, 8:38am UTC](https://discuss.elastic.co/t/sending-logs-as-it-is-to-kafka/54129/1 "2016-06-28T08:38:44Z")

</div>

Hi All,

I wanted to use filebeat for sending log message as it is to Kafka. We are doing the log enrichment from our service and we don't really need the beats provided one. I found a bit tricky to achieve this so I added this feature to the kafka output. -\> [https://github.com/elastic/beats/pull/1921](https://github.com/elastic/beats/pull/1921)  
With this change you can add the following parameter to kafka output to specify which field you want to send:  
send\_field\_only: "message"

In this case it will only send the message field of the message and ignore every other field.

What do you think? Is it useful for you as well?

Thanks,  
Tamas

---

<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 19, 2016, 8:39am UTC](https://discuss.elastic.co/t/sending-logs-as-it-is-to-kafka/54129/2 "2016-07-19T08:39:18Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
