title: Structured logging in an Azure Function v3 with Azure Log Analytics
body: <p>I'm trying to use structured logging by logging in my Azure Function like this:</p>
  <pre class="lang-cs prettyprint-override"><code>log.LogError(&quot;Failed to get object. ({customerId}, {objectId}, {errorMessage})&quot;, request.CustomerId,
                      request.ObjectId, errorMessage);
  </code></pre>
  <p>My Azure Function is plugged in to a Log Analytics workspace through Diagnostic settings.</p>
  <p>Is there a way to extract the customerId, objectId and errorMessage from the Message ?</p>
  <p>I would like to create for example a dashboard showing the number of errors per customerId.</p>
  <p>I've tried to &quot;Extract Fields&quot; functionality to no avail. Do I need to use Application Insights and custom Dimensions ?</p>