I have been trying to extract a field form my custom log, in log analytics

Garon Miller 0 Reputation points
2023-08-20T21:45:06.98+00:00

Peace and Good day does anyone know how to just extract a field from a log in log analytics anymore it used to just be right under the raw date are under the prompts for stuff. but know its no longer there. Any help would be great

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,261 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 12,946 Reputation points
    2023-09-27T14:28:02.6166667+00:00

    @Garon Miller - Welcome to Microsoft Q&A and thanks for reaching out to us.

    Apologies for the delay in responding to you.

    Are you still facing issues with extracting a field from a log in Log Analytics?

    If so, try this and see if it helps.

    you can use the "project" operator in your query. Here's an example:

    Let's say you have a log that contains a field called "Message" and you want to extract just that field. You can use the following query:

    MyLog
    | project Message
    

    This will return to a table with just the "Message" field.

    You can also use the "extend" operator to create a new field based on an existing field. Here's an example:

    MyLog
    | extend NewField = Message
    

    This will create a new field called "NewField" that contains the same data as the "Message" field.

    Hope this helps. and please feel free to reach out if you have any further questions.


    If the above response was helpful, please feel free to "Accept as Answer" and click "Yes" so it can be beneficial to the community.

    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.