Azure LogAnalytics Appender - FollettSchoolSolutions/perfmon4j GitHub Wiki

Azure LogAnalyticsAppender

Version Introduced: 1.5.1-SNAPSHOT
Class Name: org.perfmon4j.azure.LogAnalyticsAppender

The LogAnalyticsAppender will write data from Perfmon4j Monitors and SnapShotMonitors to a Log Analytics workspace in Azure Monitor. For information on the Microsoft REST API used by this appender click here

Example configuration:

 <appender name='loganalytics' className='org.perfmon4j.azure.LogAnalyticsAppender' interval='1 minute'>
   <attribute name='customerID'>1c4c1516-d3c2-4889-bg16-6eedd52e6702</attribute>
   <attribute name='sharedKey'>LKgjl2YjpzKsX8H+vlVB2jPKOoRN6lvCol6TNxcu5dH9OUQgNbQxGORbvtV53PplS9eue0NcRxSGybT8+In+Yw==</attribute>
</appender>

Common Attributes

Attribute Description Required Notes
customerID The workspace ID of the Log Analytics Workspace Yes
sharedKey See this Microsoft Page for information on how to retrieve a shared key using OAuth2 Yes
azureResourceID An azure resource identifier to be associated with each log event No This could be an azure Identifier associated with the Virtual Machine or Container hosting the JVM
groups* Stored as a key attribute pair with associated with each data element No
subCategorySplitter Define a regular expression to break output into category/subCategory. See: Sub-Category-Splitter No

* The LogAnalyticsAppender only supports a single group value. If multiple groups are specified (comma separated) only the first group is used.

⚠️ **GitHub.com Fallback** ⚠️