{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/2038","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/2038/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/2038/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/2038/events","html_url":"https://github.com/elastic/beats/issues/2038","id":165690036,"number":2038,"title":"Filebeat unmarshals JSON integers as float64","user":{"login":"andrewkroh","id":4565752,"avatar_url":"https://avatars.githubusercontent.com/u/4565752?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewkroh","html_url":"https://github.com/andrewkroh","followers_url":"https://api.github.com/users/andrewkroh/followers","following_url":"https://api.github.com/users/andrewkroh/following{/other_user}","gists_url":"https://api.github.com/users/andrewkroh/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewkroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewkroh/subscriptions","organizations_url":"https://api.github.com/users/andrewkroh/orgs","repos_url":"https://api.github.com/users/andrewkroh/repos","events_url":"https://api.github.com/users/andrewkroh/events{/privacy}","received_events_url":"https://api.github.com/users/andrewkroh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/beats/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/elastic/beats/labels/Filebeat","name":"Filebeat","color":"008000"},{"url":"https://api.github.com/repos/elastic/beats/labels/P2","name":"P2","color":"000000"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-15T00:53:52Z","updated_at":"2016-07-26T02:18:37Z","closed_at":"2016-07-26T02:18:37Z","body":"Filebeat can unmarshal arbitrary JSON data, and when it unmarshals numbers they are of type float64. If you try to use a conditional filter with `equals` to match against a number read from JSON you get the following error.\r\n\r\n`condition.go:240: WARN unexpected type float64 in equals condition as it accepts only integers and strings.`\r\n\r\nFilebeat version: 5.0.0 git c54b7c4e161abe1f2f3d6aa181f8d18f575a7dd1\r\n\r\nConfig:\r\n\r\n```\r\n$ cat filebeat.dev.yml \r\nfilebeat.prospectors:\r\n  - paths:\r\n    - \"./input.json\"\r\n    json.keys_under_root: false\r\n\r\nprocessors:\r\n  - drop_event:\r\n      when:\r\n        and:\r\n          - contains:\r\n              json.http_user_agent: \"ELB-HealthChecker\"\r\n          - equals:\r\n              json.status: 200\r\n\r\noutput.console:\r\n  pretty: true\r\n\r\nlogging.level: debug\r\n```\r\n\r\nInput file:\r\n```\r\n$ cat input.json \r\n{\"http_user_agent\": \"ELB-HealthChecker/1.0\", \"status\": 200}\r\n```"}}
{"actor":{"display_login":"andrewkroh"}}