ListLogGroups API Returns Incomplete Results for VCN/Subnet Audit Log Groups
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 243
- Forks
- 171
- Avg merge
- 30m
- Merged PRs (30d)
- 4
Description
The LoggingManagementClient.listLogGroups() method returns incomplete results, specifically missing log groups associated with VCN/subnet audit logging, despite successful authentication and HTTP 200 responses.
Environment
- OCI Java SDK Version: 3.69.0
- Java Version: 8
- Authentication: User principal with tenancy-wide read permissions
Expected Behavior
Should return all log groups the authenticated principal can access, including VCN Flow Log audit groups.
Actual Behavior
- API returns HTTP 200 with valid response structure and request IDs
(super=com.oracle.bmc.logging.responses.ListLogGroupsResponse@be50ef52,opcNextPage=null,opcPreviousPage=null,opcRequestId=<request_id>,items=[])
- Same log groups are visible and accessible in OCI Console with identical credentials
- No authentication errors or exceptions
- OCI CLI shows identical behavior (missing same log groups)
oci logging log-group list --compartment-id "<compartment-id>" --region us-phoenix-1
Implementation
final LoggingManagementClient client = LoggingManagementClient.builder()
.region(region)
.build(new ConfigFileAuthenticationDetailsProvider(configFilePath, profile))
final ListLogGroupsRequest.Builder builder = ListLogGroupsRequest.builder().compartmentId(compartmentId);
String nextPage = null;
do {
final ListLogGroupsRequest request = builder.page(nextPage).build();
final ListLogGroupsResponse response = client.listLogGroups(request);
response.getItems().forEach(logGroup -> {
// Process discovered log groups - VCN audit log groups missing
});
nextPage = response.getOpcNextPage();
} while (!Strings.isNullOrEmpty(nextPage));
Request
Please investigate why the API filters out VCN/subnet audit log groups that are visible in Console with same permissions.
Note: May be related to #668
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the discrepancy through LoggingManagementClient.listLogGroups() and the provided OCI CLI command with the stated compartment, region, and credentials. Compare the SDK and CLI results with the OCI Console, then review related issue #668; done means identifying whether filtering occurs in the clients or the OCI service and documenting the confirmed cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100