1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Regex norm, as tested against regex 101 tool, should work with log insights queries. But, on your test case there's a different issue here:
The regex is not working as expected because you are using a test string
- with new lines - https://regex101.com/r/KfxnGv/1,
- however the log message that would be published to CW log group is without new lines, your regex against this type of string - https://regex101.com/r/ZyRmeu/1 does not work the same.
I would recommend working with JSON log event and then parse, instead of text string. OR, if you cannot change how the log message is published, you can change the regex itself by following this test string: https://regex101.com/r/ZyRmeu/1
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans