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

Provide a way for end users to define new string mappings in 5.0+ #94

Open
ppf2 opened this issue Oct 3, 2016 · 1 comment
Open

Provide a way for end users to define new string mappings in 5.0+ #94

ppf2 opened this issue Oct 3, 2016 · 1 comment

Comments

@ppf2
Copy link
Member

ppf2 commented Oct 3, 2016

With the introduction of text vs. keyword fields in 5.x, it can be a nice feature to provide a way for the end user to define if a field should be mapped as text vs. keyword, instead of both (which is by default per the template). This gives the user more control over how each field is handled (and can help reduce the number of fields in general) without having to directly modify the index template.

@untergeek
Copy link

I don't think this is something we can do on the fly, in grok, or any other plugin.

An index template is defined once, and applied every time a new index is created. How would we define a template that is supposed to exist before data is sent on to Elasticsearch, as the first element is leaving Logstash?

The bigger problem is what happens if a user is trying to send multiple document types to the same index, and the mappings end up colliding?

I'm just not sure this is feasible. A UI element that allows a user to configure grok, and have that UI element also create a mapping/index template at the same time might be a better approach. At least then the grok pattern could be tested, and the resulting fields mapped in a UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants