I'm trying to use structured logging by logging in my Azure Function like this:
log.LogError("Failed to get object. ({customerId}, {objectId}, {errorMessage})", request.CustomerId,
request.ObjectId, errorMessage);
My Azure Function is plugged in to a Log Analytics workspace through Diagnostic settings.
Is there a way to extract the customerId, objectId and errorMessage from the Message ?
I would like to create for example a dashboard showing the number of errors per customerId.
I've tried to "Extract Fields" functionality to no avail. Do I need to use Application Insights and custom Dimensions ?