Showing grahps in Log Analytics query - azure

In application insights we can show charts:
I would like to show a graph in Log Analytics too is that possible? I dont see charts in there?

Please select a chart from Visualization drop-down if you run the query in workbooks:
Another way is that run the query directly in the Logs blade of azure log analytics service.

Related

Display images in Azure Shared Dashboard

I have created an Azure dashboard using Shared dashboard and I have a tile as follows:
I use kusto query to display logs from log analytics.
Is it possible to show something like
if true
AND
if false instead?

Can we save azure functions logs to a file?

I know this might be a repeated question, but I am asking it again because I am not able to find any specific answer.
I am new to Azure functions. I have written an Azure functions in Java. I have a requirement to save the logs into files which will be Daily rolling log files (i.e. new log file should be created each day with the name %fileName%_ddmmyy)
When I use context.getLogger() , I am able to see the logs under Application Insights and Azure Monitor, but I cant find any option to save them into a log file. If I use Log4j, etc, I cannot see the logs under Application Insights and Azure Monitor.
I want to be able to see the logs under Application Insights and Azure Monitor as well as save them to log file which will rotate daily.
Is there any way using which I can achieve this scenario ? Any help would be appreciated.
PS : I need it in Java only. I am using java8.
AFAIK, you can export manually everyday Logs like below using export option in Logs section of function app or application insights logs:
Alternatively, you can use diagnostic setting of function and send logs to your Storage Account or else to Log Analytic workspace. This is an example workaround:
https://stackoverflow.com/a/73383532/17623802
Go to Function App Resource -> Find Diagnostic settings under Monitoring
Click on Add diagnostic setting
Give a name of your Diagnostic setting name
You can choose to export all logs and metrics or you can select from specific categories.
and then select Archive to storage account
Select the subscription and storage account
DONE.
For More info -> https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitor-log-analytics?tabs=csharp
ALTERNATE
If above doesn't work then you can also create stream analytics jobs and dump the logs data in storage account.
https://learn.microsoft.com/en-us/azure/stream-analytics/app-insights-export-stream-analytics

Is it possible to query Azure data warehouse within log analytics

I have a scenario where I would like to query Azure Data warehouse tables within the Log Analytics workspace and using those records I need to create a result set and prepare a chart.
I do see some objects in log analytics workspace like a database, table but not sure what is the purpose and are these objects specific to a resource or generic and how to use them I couldn't get documentation for these objects can somebody guide me on this.
Unfortunately, you cannot use Azure Log Analytics to query Azure SQL Data Warehouse.
Use Azure Data Studio to connect and query data in Azure SQL data warehouse.
Recommended tools for querying data in Azure SQL Data Warehouse.
Azure Log Analytics is used to write, execute, and manage Azure Monitor log queries in the Azure portal. You can use Log Analytics queries to search for terms, identify trends, analyze patterns, and provide many other insights from your data.
For more information about log queries, see Overview of log queries in Azure Monitor.
For a detailed tutorial on writing log queries, see Get started with log queries in Azure Monitor.

Can we insert tables in google cloud monitoring dashboards?

I am creating a dashboard with Google Cloud Monitoring. We can insert charts in the dashboard, but I dont see how we can show data in tabular format via UI.

What is the table that logs metrics in Azure

Azure VM's shows below charts in the overview tab. I would like to know the source table for these metrics so that I can customize and query them.
You should get them in Azure Monitor. Take a look on the Virtual Machine metrics:
https://learn.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported
https://learn.microsoft.com/en-us/azure/azure-monitor/insights/vminsights-performance
I think you are looking for a log-analytics , which will have all the metrics of the VM in the table format, here you can find how to find queries to get cutomized results for the particular VM
I believe this is what you need, you can view can data using log analytics.
https://learn.microsoft.com/en-us/azure/azure-monitor/learn/quick-collect-azurevm#view-data-collected
As mentioned above I believe Log Analytics is the source...specifically query the AzureDiagnostic Table here is a query to get you started:
AzureDiagnostics
| where ResourceProvider =="Microsoft.Compute/virtualMachines"

Resources