How to use regex for query variable with elasticsearch data source

I created a query variable with elasticsearch data source using this query “{“find”: “terms”, “field”: “timestamp”}”, which outputs values like “2023-05-10T00:00:00.000Z” I want to use the regex function and have only the date part as variable output. like this “2023-05-10”. I used “/(\d{4}-\d{2}-\d{2})/” regex, but no value is displayed in the output. Can you tell me what the problem is?

1 Like