azure - Powershell Get-AzureADAuditSignInLogs 未返回预期数量的日志

标签 azure powershell azure-active-directory audit-logging azure-storage-account

我正在使用 Powershell 从 Azure AD 获取 SignInLogs。据我了解,SignInLogs 在 Azure 中滚动存档 7 天。但是,当我使用此方法时,我只收到 960 个单独的登录日志。如果追溯到 7 天,应该会有更多(我调查了一下,有时大约每 10 分钟就会有超过 960 个新登录)。通过这种方式使用 Powershell 提取的日志数量是否有限制?或者,有没有办法指定一个更大的历史时期来获取日志?

这是 Powershell 命令:

Connect-AzureAD -AccountId <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="58353d183b373528393621763b3735" rel="noreferrer noopener nofollow">[email protected]</a> 
Get-AzureADAuditSignInLogs

编辑:我尝试指定较早的开始日期,但仍然获得相同数量的日志:

Connect-AzureAD -AccountId <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c4a9a184a7aba9b4a5aabdeaa7aba9" rel="noreferrer noopener nofollow">[email protected]</a> 
Get-AzureADAuditSignInLogs -Filter "createdDateTime gt 2022-02-03"

最佳答案

这似乎是一个持续存在的问题。几个用户报告了同样的问题@ github 。建议您联系MS support团队。

关于azure - Powershell Get-AzureADAuditSignInLogs 未返回预期数量的日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71070574/

相关文章:

python - Azure Speech SDK 使用 python 从流中将语音转换为文本

powershell - Powershell脚本将数组内容导出到Excel

azure-active-directory - 旧版 Azure AD 应用程序注册中的 "Grant permissions"按钮与新体验中的 "Grant admin consent"有何不同?

azure - Azure AD B2C 如何使用 GraphQL(Apollo 服务器)API 和 ReactJs 进行身份验证

c# - PowerShell 脚本表达式或语句中出现错误 "Unexpected token ' h'。字符串缺少终止符 :"

azure - 加入域服务的虚拟机未出现在“Active Directory 设备”边栏选项卡中

api - Azure 中的 BadRequest on/metrics REST 端点

azure - 如何限制azure devops服务器中状态之间的事务?

java - 无法连接 Microsoft Azure Vm 中的端口

powershell - 从Powershell获得的总和参数