Hi @Sameer Dayal
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
It seems like you are trying to capture the "Ingestion Volume" from Azure Log Analytics using the Azure REST API. The code you have provided is a JavaScript function that filters the usage data and returns the workspaces that have a daily data ingestion greater than 100.
To capture the "Ingestion Volume" from Azure Log Analytics using the Azure REST API, you can use the following API endpoint:
https://api.loganalytics.io/v1/workspaces/{workspaceId}/usage
You will need to replace {workspaceId} with the ID of your Log Analytics workspace. This API endpoint returns the usage data for the specified workspace, including the daily data ingestion.
You can use the Azure REST API to make a GET request to this endpoint and retrieve the usage data. Here is an example of how to make a GET request to this endpoint using the Azure CLI:
az rest --method GET --uri "https://api.loganalytics.io/v1/workspaces/{workspaceId}/usage" This will return the usage data for the specified workspace in JSON format. You can then parse the JSON data and extract the "Ingestion Volume" for the workspace.
If you have any further queries, do let us know
---------------------------------------------------------------------------------------------------------
If the answer is helpful, please click "Accept Answer" and "Upvote it"