I need to create a regex expression for fluent bit This is what I tried
^(?<log_time>[0-9-]+ [:0-9,]+)\s+\s+(?<severity>\w+)\s+-\s+(?<message>.*)
Input is 2022-07-20 15:21:31,994 - INFO - Moving to Dashboard
Desired output:
log_time: 2022-07-20 15:21:31,994
severity: INFO
message: Moving to Dashboard
How can I achieve this? (at some point I am getting the log_time before milliseconds but that's not enough) Help would be appreciated. Thank you