# Parse the log in filebeat

**URL:** <https://discuss.elastic.co/t/parse-the-log-in-filebeat/244993>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 14, 2020, 10:41am UTC](https://discuss.elastic.co/t/parse-the-log-in-filebeat/244993 "2020-08-14T10:41:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep1-0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeep1-0/32/64651_2.png) [@sandeep1-0](https://discuss.elastic.co/u/sandeep1-0)\
**Post date:** [August 14, 2020, 10:41am UTC](https://discuss.elastic.co/t/parse-the-log-in-filebeat/244993/1 "2020-08-14T10:41:57Z")

</div>

Hey my current setup includes filebeat sending data to kafka. So i wanted to have control over data going into partition. So by making use of a unique key we can actually control it. So the question is .  
Is there a way to make use of a field in logs as unique key. Say i have a log which is not in json format and contains a id in it. All the events with same id should go into a single partition in kafka topic. Can we achieve by making use of processor?

---

<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:** [September 11, 2020, 10:42am UTC](https://discuss.elastic.co/t/parse-the-log-in-filebeat/244993/2 "2020-09-11T10:42:13Z")

</div>

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