VCN Flow Logs Configured Correctly but Query Returns No Results

未關閉
#668 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
java
領域
cloud, networking

研究方向

從 issue 中所示的 OCI Java SDK 3.54.0 flow-log 設定開始,然後在 OCI CLI 和 Console 中比較相同的設定與查詢。檢查預期的收集時間範圍、查詢語法以及區域行為;完成的標準是找出 null 結果的原因,或記錄已確認的服務限制。

由索引模型根據 Issue 內容生成。

描述

Logging Analytics

Environment

oci-java-sdk Version: 3.54.0

Description
I have configured VCN Flow Logs through the Java SDK to monitor network traffic, but queries return null results despite correct configuration.
Steps Taken

Created log groups for each region
Created flow logs for each VCN using the following configuration:
javaCopyOciService source = OciService.builder()
.service("flowlogs")
.resource(vcnId)
.category("vcn")
.build();

Confirmed the log is properly enabled:
CopyLog Name: flow-log-oci-start-pro-vcn
Enabled: true
Log Type: Service
Lifecycle State: Active

Attempted various query formats including:
Copysearch "compartmentId/logGroupId"
search "compartmentId/logGroupId" | where service='flowlogs'
search "compartmentId/logGroupId" | where data.category='vcn'

All queries consistently return null results

Troubleshooting

Verified logs are in "Enabled" state and "Active" lifecycle state
Tried queries with extended time ranges (7-30 days)
Confirmed there is actual network traffic on the VCNs
Used multiple query syntax variations based on Oracle documentation
Used Java SDK, OCI CLI, and Console to attempt log retrieval

Expected Behavior
Queries should return flow log data for the VCNs when network traffic is present.
Actual Behavior
All queries return null results despite logs being correctly configured and enabled.
Possible Causes

Undocumented delay in log collection beyond the expected timeframe
Potential mismatch between log configuration parameters and query syntax
Issues with log indexing or processing on the backend
Possible API/SDK limitations for flow logs in this region

Request
Please advise on:

Expected timeframe for flow logs to begin showing data after configuration
Correct query syntax for retrieving flow logs with the provided configuration
Any additional steps needed to ensure log collection is working properly
Any known issues with flow logs in this region or service

主要語言
Java
星號
243
分支
171
平均合併
5 分鐘
30 天內合併 PR
4

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

oracle/oci-java-sdk 的其他 Issue

查看 oracle/oci-java-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。