Skip to main content

It is a helper tool for azure monitor. It is not official.

Project description

It is a helper tool for Azure Monitor. It is not official. Recently it is used the term Azure Monitor logs instead of Log Analytics. Log data is still stored in a Log Analytics workspace and is still collected and analyzed by the same Log Analytics service. https://docs.microsoft.com/en-us/azure/azure-monitor/

Install

pip install azmonitor

Example

import azmonitor

log_type = 'AzMonitor'
customer_id = 'xxxxx-xxxx-xxxx-xxxx-xxxxx'
shared_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxx'

applog = azmonitor.LogAnalytics(log_type, customer_id, shared_key)

# Single Data
data = {'status': 'starting', 'value': 50}
applog.log(data)

# Multi Data
list_data = []
for i in range(3):
    list_data.append({'status': 'starting', 'value': i})
applog.logs(list_data)

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
azmonitor-0.8.1.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page