# Out of order fields

**URL:** <https://discuss.elastic.co/t/out-of-order-fields/160452>\
**Category:** Logstash\
**Created:** [December 12, 2018, 12:11am UTC](https://discuss.elastic.co/t/out-of-order-fields/160452 "2018-12-12T00:11:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexsamad](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alexsamad](https://discuss.elastic.co/u/alexsamad)\
**Post date:** [December 12, 2018, 12:11am UTC](https://discuss.elastic.co/t/out-of-order-fields/160452/1 "2018-12-12T00:11:17Z")

</div>

Hi

I have a input like  
2018-12-12 10:34:51,357 [SocketAcceptorIoProcessor-1.0] INFO msg.incoming - FIX.4.4:xxxx-\>hhhh/hhhhfix: 8=FIX.4.4

where therest is in the form of Code=value\x01 delimited by \x1.

Now the problem is there is no order to code so it might come out as

34=sdsdf\x137=asasaas\x152=sdsdf\x1  
or  
52=sdsdf\x137=asasaas\x134=sdsdf\x1

so I built a

grok {  
break\_on\_match =\> false  
match =\> [ "message" =\> " %{GREEDYDATA:msg} "  
#multi matchs for the different codes - but it not working !  
match =\> ["msg" =\> "(?\<\>code)"]  
match =\> ["msg" =\> "(?\<\>code)"]  
match =\> ["msg" =\> "(?\<\>code)"]

}

---

<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:** [January 9, 2019, 12:23am UTC](https://discuss.elastic.co/t/out-of-order-fields/160452/2 "2019-01-09T00:23:27Z")

</div>

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