Can I search elastic keys with wildcard or substring

I have the following patterns as keys in my data stored in elk indexes:

* Name
* _name
* preffered_name
* first_name
* last_name

I need to query these keys, but the key names are not fixed, so need to search keys based on substring or wildcard "name", Is there any query which can help in reteiving values of these type of keys.

Thanks

FWIW the Elasticsearch terminology is fields, not keys, so field-value pairs. I know json is key-value, which is kinda confusing :slight_smile:

Query string query | Elasticsearch Guide [8.6] | Elastic should do that as you can use wildcards with it for the field names you are querying.

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