Skip to content

LogWorkspace

Tore Nestenius edited this page Sep 25, 2024 · 6 revisions

Azure Log Analytics Workspace Logging Tool

Overview

This tool sends a set of 10 sample log statements to an Azure Log Analytics Workspace using the HTTP Data Collector API. The log messages are customizable and are logged with different severities (Information, Warning, Error) for effective testing and diagnostics within your Azure environment.

Purpose

When integrating applications with Azure Log Analytics, it is crucial to ensure that log data is correctly sent and captured in the Log Analytics Workspace. This tool allows you to:

  • Test the integration by sending sample log data.
  • Ensure that the log data reaches your workspace and is correctly ingested.
  • Check how the system handles log severities (Information, Warning, Error).

Using this tool, you can quickly validate and troubleshoot your logging setup in Azure Log Analytics.

How It Works

  • Log Messages: The tool generates 10 sample log statements, each with a customizable message appended with a unique number (e.g., Log Message #1, Log Message #2, etc.).
  • Severity Levels: The log statements are randomly assigned one of three severities: Information, Warning, or Error. This lets you verify that logs at different severity levels are handled appropriately.
  • Log Type and Workspace Details: You can specify the log type and provide the workspace ID and workspace key for authentication. These details are stored in the session for easy reuse.

The tool will send log data to your Log Analytics Workspace and display a message confirming the logs were successfully sent.

Clone this wiki locally