Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Heartbeat] Alias http.url.raw to url.full #10005

Closed
wants to merge 1 commit into from

Conversation

andrewvc
Copy link
Contributor

Continues the work in #9570 , aliasing this field for convenience.
In ECS this field is already a keyword, so this should be fine.

Continues the work in elastic#9570 , aliasing this field for convenience.
In ECS this field is already a keyword, so this should be fine.
@@ -13,6 +13,12 @@
migration: true
description: >
Service url used by monitor.
- name: url.raw
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this will actually work to have a field which was a multi field before pointing to an alias. Problem is that we have now an alias http.url and http.url.raw which I would think is not possible in a template.

If you run make update and try to load the template, you will definitively find out.

@andrewvc
Copy link
Contributor Author

@ruflin you are right, it totally does not work :(.

Closing.

Partial error below:

Elasticsearch returned: couldn't load template: couldn't load json. Error: 400 Bad Request: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Mapping definition for [url] has unsupported parameters:  [properties : {raw={path=url.full, type=alias}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Mapping definition for [url] has unsupported parameters:  [properties : {raw={path=url.full, type=alias}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Mapping definition for [url] has unsupported parameters:  [properties : {raw={path=url.full, type=alias}}]"}},"status":400}. Response body: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Mapping definition for [url] has unsupported parameters:  [properties : {raw={path=url.full, type=alias}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Mapping definition for [url] has unsupported parameters:  [properties : {raw={path=url.full, type=alias}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Mapping definition for [url] has unsupported parameters:  [properties : {raw={path=url.full, type=alias}}]"}},"status":400}. Template is: map[mappings:{"_doc":{"_meta":{"version":"7.0.0"},"date_detection":false,"dynamic_templates":[{"container.labels":{"mapping":{"type":"keyword"},"match_mapping_type":"string","path_match":"container.labels.*"}},{"fields":{"mapping":{"type":"keyword"},"match_mapping_type":"string","path_match":"fields.*"}},{"docker.container.labels":{"mapping":{"type":"keyword"},"match_mapping_type":"string","path_match":"docker.container.labels.*"}},{"strings_as_keyword":{"mapping":{"ignore_above":1024,"type":"keyword"},"match_mapping_type":"string"}}],"properties":{"@timestamp":{"type":"date"},"agent":{"properties":{"ephemeral_id":{"ignore_above":1024,"type":"keyword"},"hostname":{"ignore_above":1024,"type":"keyword"},"id":{"ignore_above":1024,"type":"keyword"},"name":{"ignore_above":1024,"type":"keyword"},"type":{"ignore_above":1024,"type":"keyword"},"version":{"ignore_above":1024,"type":"keyword"}}},"beat":{"properties":{"hostname":{"path":"agent.hostname","type":"alias"},"name":{"path":"agent.type","type":"alias"},"timezone":{"path":"event.timezone","type":"alias"}}},"client":{"properties":{"address":{"ignore_above":1024,"type":"keyword"},"bytes":{"type":"long"},"domain":{"ignore_above":1024,"type":"keyword"},"geo":{"properties":{"city_name":{"ignore_above":1024,"type":"keyword"},"continent_name":{"ignore_above":1024,"type":"keyword"},"country_iso_code":{"ignore_above":1024,"type":"keyword"},"country_name":{"ignore_above":1024,"type":"keyword"},"location":{"type":"geo_point"},"name":{"ignore_above":1024,"type":"keyword"},"region_iso_code":{"ignore_above":1024,"type":"keyword"},"region_name":{"ignore_above":1024,
...

@andrewvc andrewvc closed this Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants