Unable to get "Ingestion Volume" from log Analytics Workspace via Azure Rest API

Sameer Dayal 0 Reputation points
2024-10-10T14:23:21.07+00:00

Hi, trying to capture "Ingestion Volume" from Azure Log analytics using the Azure Rest API. Buts the

script "js_workspace_usage",type: "javascript" do

  code = <<-EOS function filterUsage(data)

{ var usage = []; data.forEach(function(workspace) {

        if (workspace.properties.ingestion > 100) {

          usage.push({ workspace_id: workspace.id,

            workspace_name: workspace.name, daily_data_ingestion: workspace.properties.ingestion

          }); } });

      return usage; } EOS
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,606 questions
{count} votes

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.