Restrict Fields being created

Hi Guys

I have a question I can't get going through the forums.

Is there any way to set up a rule that will prohibit any attempt to create a field with a name that has a datetime section in it?

For e.g data comes in, and the field name they want to create = "Data2020-04-18"
Please note I am not talking about the content within the field, just the field name itself.

Is there a way to stop certain field names being created

Thanks:)

I can't see a solution for that specifically.
You can reject any document which does not comply with the mapping with "dynamic": "strict" mapping option ( https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html) but I don't think you can define regex or things like that.
I believe this is something you should control in your application.

1 Like

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