Skip to content

How to Get the Logs

Version: 0.1

April 2025

Introduction

This guide describes how to get information about the ShArc processes from the logs using Azure Log Analytics.

1. Navigate to Log Analytics

1.1 In the Azure Portal, search for Log Analytics and select Log Analytics Workspaces in the Services section.

navigate_to_log_analytics_workspace

1.2 Find the workspace that is named like your ShArc web server prefixed with la- and click it.

log_analytics_workspace

1.3 Click on Logs at the left-hand menu and close the Queries hub window.

go_to_logs_kql_window

2. Configure and run the KQL Query

2.1 In case Simple mode is selected at the upper right, change it to KQL mode.

switch_to_kql_mode

2.2 Paste the following KQL query in the query window:

AppServiceConsoleLogs| where ResultDescription matches regex @"\bey[A-Za-z0-9_-]+\b" == false| where ResultDescription has "RequestBody: grant_type=" == false| project TimeGenerated, ResultDescription| order by TimeGenerated desc

2.3 In the top bar, set the Time range to the range you want the logs to be extracted for and click Apply.

set_custom_time_range

2.4 In the top bar, set the number of results to show to Max. limit and click Appy.

set_number_of_results_to_max

2.5 Run the query using the Run button in the top bar.

3. Export and Send the Result

3.1 When the results are shown, click on Share at the upper right and then Export to CsV (displayed columns).

share_log_analytics_result_as_csv

3.2 Create a zip file from the downloaded csv file.

3.3 Add additional information

In case you have additional information like screenshots from the ShArc application or the web server metrics, please add them to the zip file.

metrics_sample
 

3.4 Upload the zip file using the following link: Upload zipped ShArc log files

3.5 Send a notification to support@layer2solutions.com.

  • Use a subject like ShArc | \<your name or company as specified in the upload form> | \<short text describing the issue>
  • Provide a short description of the issue, especially what you did, what you expected and what you observed instead.

RELATED ARTICLES