Skip to content

Commit

Permalink
Cherry-pick elastic#10995 to 7.x: Include ip and boolean type when ge…
Browse files Browse the repository at this point in the history
…nerating index pattern (elastic#11089)

Cherry-pick of PR elastic#10995 to 7.x branch. Original message: 

A number of fields in our `fields.yml` files now are `type: ip` (e.g. `source.ip`) and `type: boolean`, but the code generating index patterns does not know about these types yet and so does not add a `type` to the index pattern for those fields at all. This leads to errors in Kibana when looking at dashboards that contain references to those fields.
  • Loading branch information
Christoph Wurm committed Mar 6, 2019
1 parent c5c893f commit 9e01d75
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix stopping of modules started by kubernetes autodiscover. {pull}10476[10476]
- Fix a issue when remote and local configuration didn't match when fetching configuration from Central Management. {issue}10587[10587]
- Add missing host.* fields to fields.yml. {pull}11016[11016]
- Include ip and boolean type when generating index pattern. {pull}10995[10995]

*Auditbeat*

Expand Down
2 changes: 2 additions & 0 deletions libbeat/kibana/fields_transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,7 @@ var (
"": "string",
"geo_point": "geo_point",
"date": "date",
"ip": "ip",
"boolean": "boolean",
}
)
12 changes: 6 additions & 6 deletions libbeat/kibana/testdata/extensive/metricbeat-6.json

Large diffs are not rendered by default.

0 comments on commit 9e01d75

Please sign in to comment.