Hello mara7
Thank you for reaching out to the Microsoft Q&A forum.
Here's what you can consider:
Filtering with Data Collection Rules (DCR):
Currently, the Google Workspace Activities connector captures all activity logs, and there is no native filtering option in the connector to select only login logs. However, you can use Data Collection Rules (DCR) to help manage the ingestion of logs and potentially reduce costs.
By creating a DCR, you can set parameters that target the specific data you want to collect. If supported, this would allow you to filter out non-login related logs and collect only what you truly need.
Setting up the DCR:
First, you'd want to navigate to your Azure Monitor in the Azure portal. From there, you’ll create a new DCR by following these steps:
- Go to Data Collection Rules.
- Select Add to create a new rule.
- Specify the name, resource group, and subscription.
- Under Add data source, choose the logs you want to collect (in this case, the Google Workspace logs).
- Apply necessary filters to focus on login events.
- Save your DCR and monitor your ingestion rates to ensure it meets your needs.
- Alternative Methods:
- If DCR is not supported with the Google Workspace connector, consider leveraging Log Analytics queries after ingestion to separate out login logs for reporting and analysis, though it may not directly reduce costs.
- Another potential workaround is to periodically audit and clear out unnecessary logs or set up Azure Policy alerts for data usage.
Follow-Up Questions:
To provide more tailored assistance, here are a few follow-up questions:
- Have you already set up the Google Workspace connector, or is that still pending?
- Are you currently using any specific data filtering techniques within your DCRs?
- What specific types of login logs are you looking to collect (e.g., successful logins, failed logins)?
- Do you have any log retention policies defined already that might impact your collection?
Hope this helps you move forward! Feel free to drop more questions if needed!
References:
- Learn about data collection via data connectors in Azure Sentinel
- Define and Optimize Data Collection Rules in Azure Monitor
- Cost optimization in Azure Monitor
- Best practices for Azure Monitor Logs