Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to query NSG flow log retention period from azure_network_watcher. #53

Closed
rajlearner17 opened this issue Mar 10, 2021 · 0 comments · Fixed by #61
Closed
Assignees
Labels
priority:high This issue requires immediate attention

Comments

@rajlearner17
Copy link
Contributor

rajlearner17 commented Mar 10, 2021

Currently this query returns only the id of the
select jsonb_pretty(flow_logs) from azure_network_security_group where name = 'myabc-nsg'
[ {
"id": "/subscriptions/xxxxxxxxxxxxxxxxxx1b097a0469dd/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_westus/flowLogs/myabc-nsg-flowlog
}
]
However
If we can pull more info from the Flow logs settings from Network Watcher will be good, this will also address the retention period.

API reference - https://docs.microsoft.com/en-us/rest/api/network-watcher/flowlogs/get

image

Ref Azure CIS 1.3.0 : 6.4

@Subhajit97 Subhajit97 self-assigned this Mar 23, 2021
@Subhajit97 Subhajit97 linked a pull request Mar 23, 2021 that will close this issue
@rajlearner17 rajlearner17 added the priority:high This issue requires immediate attention label Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high This issue requires immediate attention
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants