# Logstash output field order

**URL:** <https://discuss.elastic.co/t/logstash-output-field-order/187723>\
**Category:** Logstash\
**Created:** [June 27, 2019, 5:48am UTC](https://discuss.elastic.co/t/logstash-output-field-order/187723 "2019-06-27T05:48:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hengheng1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hengheng1](https://discuss.elastic.co/u/Hengheng1)\
**Post date:** [June 27, 2019, 5:48am UTC](https://discuss.elastic.co/t/logstash-output-field-order/187723/1 "2019-06-27T05:48:02Z")

</div>

first of all. I run a kfk.conf which I defined to read json file and output to kafka topic.  
when I run the kfk.conf , the output order is ["name" : "lili", "sex":"w", "age":"20"].  
then I kill the process. Rerun it , the output order is ["age":"20","name" : "lili", "sex":"w"].  
Oh, my God, I want it to run in the same order all the time.  
Who can tell me what I should do?

---

<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 25, 2019, 5:48am UTC](https://discuss.elastic.co/t/logstash-output-field-order/187723/2 "2019-07-25T05:48:04Z")

</div>

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