79279088

Date: 2024-12-13 17:15:18
Score: 1
Natty:
Report link

Log Insights rolled out OpenSearch Sql. You can now do this via something like:

SELECT 
  count(*) as req_count,
  regexp_replace(path, '(\/\\d+\/*)', '/<id>/') as regex_path
FROM your-log-group
GROUP BY regexp_replace(path, '(\/\\d+\/*)', '/<id>/')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BWhitfield