connamara / logstash-filter-fix_protocol

FIX Protocol Logstash Filter
Other
42 stars 27 forks source link

Missing field error #62

Closed daino3 closed 8 years ago

daino3 commented 8 years ago

NOTE: Please review that this is in fact your desired behavior before merging

should close #61 should close #60

demonstrative resulting events

Parse Error

{
  #... no additional data is added, we just pass on the event
  "tags" => ["_fix_parse_failure"]
}

Unknown Fields or Group Fields Error

{
  #... parse like normal
  "99" => "HI", # just use the field tag vs. name
  "unknown_fields" => ["99", "386"], # add the two fields we don't know how to parse to an "unknown_fields"... field
  "NoTradingSessions" => [
    {
      "TradingSessionID"=>"PRE-OPEN"
    }, {
      "TradingSessionID"=>"AFTER-HOURS"
    }, {
      "386"=>3 # again, just use the field tag vs. name
    }
  ]
  "tags" => ["_fix_field_not_found"]
}