Forum Discussion
Log Analytics Workspace with Multiple subscription
Hi Everyone,
Good Day! I have couple doubts in Log analytics could you please help me to understand!
1. to my understanding we can created a workspace with only one subscription. Which means the log analytics will monitor only the resource are part of that subscriptions. Am i right?
2. if i have multiple workspaces for multiple subscriptions then is that possible to bring all of them under one Dashboard?
Thanks in advance
Hi,
A single Log Analytics workspace can monitor resources in all of your subscriptions as long as they are under the same Tenant. For example if you have Azure SQL database in Subscription A and Log Analytics Workspace in Subscription B you can send the logs and metrics from that Azure SQL database to the Log Analytics workspace.
Even if you opt in to having multiple workspaces Log Analytics supports querying multiple workspaces at the same time. Of course there is a limit. You can query maximum of 100 workspaces together.
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/cross-workspace-query
The queries that you create in Logs view can be pinned to Azure dashboards.
18 Replies
- GouravINBrass Contributor
Hi S_I_Kaleel,
I have done this for my 5 subscriptions.
Now let me share my experience. First Select the subscription under that you want to create you Centralized Workspace.
But before doing this make sure you have all subscriptions created under same tenant.
If not, then there is no way to monitor Azure Resources.
- Create Azure Log Analytics
- Connect All the VMs through portal, SCCM, PowerShell, Ansible or any other preferable way, up to you.
- Now Connect all the Azure resources to workspace by going to Azure Resources page.
- Create Action group in same RG in which you have created Azure Workspace.
- Write KQL queries for alerts.
All Done!
Now there is one demerit here you cannot monitor cross subscription storage account. No matter it is under same AD tenant or not.
Coming to pricing, New cost version of ALA generally charge on Data insertion.
So the lesser you insert the lesser you have to pay.
Solution is maximum free but if you are using any solution then check if it charge for each device/resource. If so then create a free ALA and use this to leverage the same, since we can collect free data but here you have to make sure data is not more than 5 GiBs.
Hope this helps 🙂
- Sujith1565Copper Contributor
We have 13 Subscription & all have one Tenants.
Now I have created Log Analytics work space in One subscription A. On the Subscription B I'm trying to assign App-insights to Log Analytics which i created on Subscription A but it is now allowing. It is only showing log analytics on Subscription B but not Subscription A.Can some one share how to createCentralized Workspace?
- abhilearning9876Copper ContributorHi, Can we pull out all the log analytics workspace details from all of the subscription ?any way to do so ?
- CliveWatsonSilver Contributorabhilearning9876 Please see my answer in your other thread
- Lucas De CarliCopper Contributor
GouravIN And if we are using Azure Lighthouse? I thought that was the goal for Azure lighthouse...
Lucas De Carli Azure Lighthouse does not change the architecture of how to manage your customers. You still create workspace per customer in their own subscription. Lighthouse allows just easier management at scale of multiple tenants both from UI perspective and authentication for automation.
Hi,
A single Log Analytics workspace can monitor resources in all of your subscriptions as long as they are under the same Tenant. For example if you have Azure SQL database in Subscription A and Log Analytics Workspace in Subscription B you can send the logs and metrics from that Azure SQL database to the Log Analytics workspace.
Even if you opt in to having multiple workspaces Log Analytics supports querying multiple workspaces at the same time. Of course there is a limit. You can query maximum of 100 workspaces together.
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/cross-workspace-query
The queries that you create in Logs view can be pinned to Azure dashboards.
- mattmackay
Microsoft
Stanislav_Zhelyazkov when you say that a single Log Analytics Workspace can monitor ALL of your subscriptions, is there a limit to the number of subscriptions? Lets say I need to monitor 10,000 subs in a single workspace. Whether or not I should do that aside, could it be done?
mattmackay Yes, there is no limit on the data you can send. You might have trouble creating that many subscriptions though.
- Vino55
Microsoft
What is the Log Analytics story for CSPs who have multiple tenants to monitor on and report data to multiple customers?
Thanks.
To my opinion there is no difference if you are one customer or you are partner that manages 100 customers. The structure is the same - resources are created per tenant within the tenant's subscriptions. You can use various tools and methods to manage them at scale like CI/CD, single ITSM tool, etc. I would suggest to open new thread for each question that you have. That will be easier for others to follow and search.
- S_I_KaleelCopper Contributor
Hi Stan
I gone through the link you provided for single workspace with multiple subscription. But the article says how to cross query multiple workspace for data, but do not see how to created single workspace for multiple subscription. Could you please suggest.
Thanks in advance. :)
There is no special way to create a workspace for multiple subscriptions. The workspace is a workspace it is up to you to define the strategy how to use it. It is a matter of you configure data to be send to LA workspace:
- Diagnostic logs support sending data from any services in any subscriptions to LA workspace as long as it is in the same tenant
- Azure Activity logs from every subscriptions can be send to LA workspace as long as it is in the same tenant
- LA agent extension can be installed on any vm in any subscriptions to send data to LA workspace as long as it is in the same tenant.