Cannot unmarshal number into Go value of type map[string]interface {}

Here is my log:
2017-05-12 08:46:35.1280 - INFO: Performance - ConfigurationComponent.GetCountryFields executed in 2625 ms. - {"Class":"ConfigurationComponent","Method":"GetCountryFields","Ms":"test","Ticks":"test1"}

Here is my filebeat.yml :
filebeat.prospectors:

  • type: log

    enabled: true

    paths:

    • d:\logs*.log
      json.keys_under_root: true
      json.add_error_key: true
      json.message_key: log

Then I always get this error in kibana: Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}

Read all related topic here, does not help

Your log line is not json. It is first text that then contains somewhere json. If you configure json it expects the full line to be json.

If you want to somehow extract the above json into structured data I recommend you to send the data through LS and there try to extract and decode the necessary part.

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