Can have empty properties mapping?


(Maxwell Flanders) #1

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.


(Igor Motov) #2

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

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

(system) #3

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