Cannot extract custom field

Kyriacos 21 Reputation points
2022-12-08T21:15:07.07+00:00

I'm trying to extract a custom field from a custom log, but receiving a 400 error with no additional details when I click on "extract fields from CL".

268709-screenshot-2022-12-08-at-221105.png

268781-screenshot-2022-12-08-at-221131.png

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,662 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Clive Watson 7,866 Reputation points MVP Volunteer Moderator
    2022-12-10T17:05:57.46+00:00

    Custom Fileds was a feature that never made it out of (Preview), https://learn.microsoft.com/en-us/azure/azure-monitor/logs/custom-fields

    https://learn.microsoft.com/en-gb/azure/data-explorer/kusto/query/extendoperator has replaced this in most situations

    Please "accept" if this helps


  2. Clive Watson 7,866 Reputation points MVP Volunteer Moderator
    2022-12-14T22:54:56.797+00:00

    Of course you can...however in 99% of cases you dont need to (I made that number up but its probably close to the truth). Also aligning on a thing that's not invested in, may cause issues and is against the recommendations from Microsoft.

    https://learn.microsoft.com/en-us/azure/azure-monitor/logs/custom-fields

    Note

    This article describes how to parse text data in a Log Analytics workspace as it's collected. We recommend parsing text data in a query filter after it's collected following the guidance described in Parse text data in Azure Monitor. It provides several advantages over using custom fields.

    Important

    Custom fields increases the amount of data collected in the Log Analytics workspace which can increase your cost. See Azure Monitor Logs pricing details for details.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.