Enable logging to Application Insights (log shipping)
Nerdio Manager allows for all console logs to be redirected to the Nerdio Manager Application Insights workspace. From here, the logs can be interrogated directly using standard workspace queries, exported manually for review, or accessed programmatically via API. This allows administrators to ingest Nerdio Manager logs into a log management SIEM solution.
Notes:
Please ensure you have completed the migration to the App Insights Workspace-based model prior to performing this activity. See Migrate to Workspace-based Application Insights from Classic for details.
To configure this functionality, you must add a new App Service setting to your Nerdio Manager App Service. If you have concerns about making this change, please contact the Nerdio support team for assistance.
To enable logging to Application Insights (log shipping):
In the Azure portal, navigate to your Nerdio Manager App Service instance.
On the left, in the Settings blade, select Environment variables.
From the default App settings tab, select + Add.
-
Enter the following information:
Name: Logging:LogLevel:NMM.Tasks
Value: Information
Deployment slot setting: Unselect this option. (Disabled)
Select OK to save the changes.
-
If you are prompted, restart the Web App. If you are not prompted, restart the Web App from the Overview page.
Note: Logs may take up to 30 minutes to populate. Only new events after this setting has been added are captured. To test the functionality, navigate to the Application Insights workspace for your Nerdio Manager instance.
On the left, in the Monitoring blade, select Logs.
-
Run one of the following queries to view all the available data.
Note: Depending on the deployment date of the Application Insights instance, the table name storing the exported logs may be different. If the query using Traces does not work, please use the alternate query using AppTraces. For more details, see Migrate to workspace-based Application Insights resources.
traces
| extend CategoryName = customDimensions["CategoryName"]
| extend Username = customDimensions["Username"]
| extend JobId = customDimensions["JobId"]
| extend JobType = customDimensions["JobType"]
| extend JobDescription = customDimensions["JobDescription"]
| extend TaskId = customDimensions["TaskId"]
| extend TaskName = customDimensions["TaskName"]
| extend TaskStatus = customDimensions["TaskStatus"]
| extend TaskResult = customDimensions["TaskResult"]
| extend Username = customDimensions["Username"]
| where CategoryName == "NMM.Tasks"
| order by timestamp desc
-
Wait for results and make sure it contains NMM tasks. Logs include job/task ID, job/task name, creation date, and other task details, so you can check if specific job is logged.
Comments (0 comments)