I wrote a script in python that pushes Azure WebApp Certificate logs to a Loki instance. I want to be able to create a dashboard base on the logs, but I can't extract the values.
When I tried logfmt I was able to filter based on the values that I want to extract, but I can't display them. This is the query expression that I used:
Is there any way to display the 'days_till_expiry", or are there any best practices for extracting data from logs? My end goal would be creating alerts based on these values.
The logs have this format:
certificate_name=**** ,location=**** ,subject=****, days_till_expiry=16