Can have empty properties mapping?

I only want to pre-define a field as an object datatype, but i do not know what fields will go in it, they will be added later by various bits of a logstash kv filter. Can i define it like so without errors??

"my-field": {
  "properties": {
          
  }
}

So, an empty properties field, but "my-field" is definitely an object.

Yes, that should work. Alternatively, you also specify the type as object explicitly:

"my-field": {
  "type": "object"
}

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