Druid provides useFieldDiscovery property for this situation. If you do not specify dimensions explicitly in the ingestion spec and set the parameter useFieldDiscovery=true. Further read: https://druid.apache.org/docs//0.15.1-incubating/ingestion/flatten-json.html