I need to extract date_from and date_to from the following log field value.
date_from=11-04-2020&date_to=01-04-2021&page_size=1000&page=1 in AWS cloudwatch
I have so far tried parse keyword with the following regex \d{2}-\d{2}-\d{4} and it does not work.
What I ultimately want to do is extract these two dates and gets the time difference between them in days.
Here's the query I tried,
filter @logStream like /<log-stream>/ and process like /rest-call/ | parse parameters '\d{2}-\d{2}-\d{4}' as @date | display @date