# FIX messages

**URL:** <https://discuss.elastic.co/t/fix-messages/29154>\
**Category:** Kibana\
**Created:** [September 11, 2015, 5:49pm UTC](https://discuss.elastic.co/t/fix-messages/29154 "2015-09-11T17:49:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhan](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dhan](https://discuss.elastic.co/u/dhan)\
**Post date:** [September 11, 2015, 5:49pm UTC](https://discuss.elastic.co/t/fix-messages/29154/1 "2015-09-11T17:49:15Z")

</div>

Is it possible to search for FIX messages, like 35=i? Because it handles the = sign not a character and find every 35 and i, even if put it into commas?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [September 12, 2015, 10:52pm UTC](https://discuss.elastic.co/t/fix-messages/29154/2 "2015-09-12T22:52:22Z")

</div>

You may need to analyze the messages using something other than the default analyzer (you'd specify this in your ES mappings).

For instance, it seems that the [whitespace analyzer](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-whitespace-analyzer.html) would do the right thing:

```
curl -XGET -d "a=12 b=34" http://localhost:9200/_analyze?analyzer=whitespace 
{  
   "tokens":[  
      {  
         "token":"a=12",
         "start_offset":0,
         "end_offset":4,
         "type":"word",
         "position":0
      },
      {  
         "token":"b=34",
         "start_offset":5,
         "end_offset":9,
         "type":"word",
         "position":1
      }
   ]
}

```

---

<div class="post-metadata">

**Author:** ![Thorsten\_Nickel](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@Thorsten\_Nickel](https://discuss.elastic.co/u/Thorsten_Nickel)\
**Post date:** [September 22, 2015, 1:28pm UTC](https://discuss.elastic.co/t/fix-messages/29154/3 "2015-09-22T13:28:16Z")

</div>

Hi Daniel,

regarding the FIX Messages I have some experience which I hope can be of help to you.  
First of all, you will need to parse out the FIX String out into a variable,

As the next step, you replace the seperator (HEX 01) with a more common character like so:

```
mutate {
  gsub => [
            "message", "\x01", "^"
          ]
}

```

Then, you can split up all the fields with the kv filter like this:

```
# Now split each of these filed with Key = Value and set new fields by the name of Key
kv {
  field_split => "^"
  source => "fix_message"
}

```

Then I usually drop the FIX Heartbeats ...

```
# And drop the heartbeat messages
if [35] == "0" {
  drop { }
}
# And now we rename some fields to be more verbose ...
mutate {
  rename => ["35", "MsgType"]

```

}

This way, you can search your FIX Message like this : "MsgType:A" for authentication messages.

Hope this helps,  
Thorsten

---

<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 6, 2017, 2:12pm UTC](https://discuss.elastic.co/t/fix-messages/29154/4 "2017-07-06T14:12:46Z")

</div>


