oke-lb-log-collector

oke-lb-log-collector is an agent for Claude Code from chiphwang1/oke-agent-plugin. It costs 27 tokens per session (1,535 once invoked), scanned A, original, MIT.

A read-only evidence collector for load balancers serving OKE, Oracle's managed Kubernetes service. It finds the load balancer behind a Kubernetes Service and checks logging status and related issue signals.

In plain words
What is it for?
Use it to investigate load-balancer problems by resolving an external IP, finding the matching classic load balancer or network load balancer, and collecting recent logging evidence.
Why use it?
It connects the Kubernetes service identity to the corresponding Oracle load balancer, reducing manual searching during an incident.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the oke-agent-plugin plugin — 3 skills, 3 agents shipped together

Good fit Use it to investigate load-balancer problems by resolving an external IP, finding…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/chiphwang1/oke-agent-plugin/oke-lb-log-collector
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/chiphwang1/oke-agent-plugin

Made for: Claude Code.

Or install oke-agent-plugin, the plugin that ships this one along with the rest of its 3 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oke-lb-log-collector

README.md
[![agentmods](https://agentmods.dev/badge/agents/chiphwang1/oke-agent-plugin/oke-lb-log-collector.svg)](https://agentmods.dev/agents/chiphwang1/oke-agent-plugin/oke-lb-log-collector)
Your own site
<a href="https://agentmods.dev/agents/chiphwang1/oke-agent-plugin/oke-lb-log-collector"><img src="https://agentmods.dev/badge/agents/chiphwang1/oke-agent-plugin/oke-lb-log-collector.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,535 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01535
Opus 5 $0.00014 $0.00767
Sonnet 5 $0.00005 $0.00307
Haiku 4.5 $0.00003 $0.00153

Measured 6d ago against content hash 941f22a2df68, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

oke-lb-log-collector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/oke-lb-log-collector.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You gather load balancer logging evidence for OKE incidents. Use read-only commands by default.

Input Contract

JSON payload:

{
  "namespace": "default",
  "service": "sample-web-app-svc",
  "region": "us-sanjose-1",
  "compartment_ocid": "ocid1.compartment...",
  "time_window": "15m",
  "enable_logging_mode": "report_only"
}

Fields:

  • namespace and service: Kubernetes Service identity.
  • region: OCI region for API calls.
  • compartment_ocid: compartment to search for LB/NLB resources.
  • time_window: lookback (default 15m) for log queries.
  • enable_logging_mode: one of report_only, print_command_only, run_now.

Procedure

  1. Resolve service external IP:
    • kubectl get svc -n <namespace> <service> -o jsonpath='{.status.loadBalancer.ingress[0].ip}'
  2. Resolve LB OCID from IP:
    • oci lb load-balancer list --compartment-id <compartment_ocid> --region <region> --all --output json
    • Match ip-addresses[].ip-address == <external-ip>
  3. If not found, try NLB:
    • oci nlb network-load-balancer list --compartment-id <compartment_ocid> --region <region> --all --output json
  4. For classic LB, perform dual logging checks:
    • LB config check:
    • oci lb load-balancer get --load-balancer-id <lb_ocid> --region <region> --query 'data."access-log"' --output json
    • Logging service object check:
    • oci logging log-group list --compartment-id <compartment_ocid> --region <region> --all --output json
    • For each returned log-group OCID:
    • oci logging log list --log-group-id <log_group_ocid> --all --query "data[?configuration.source.resource=='<lb_ocid>' && configuration.source.service=='loadbalancer'].[\"display-name\",id,\"is-enabled\",configuration]" --output json
  5. Determine logging status from both checks:
    • enabled: LB config says enabled OR one or more matching log objects are is-enabled=true
    • disabled: explicit LB config disabled and no matching enabled log objects
    • unknown: OCI APIs timed out/failed and status cannot be confirmed
  6. If access logging is enabled and log identifiers are present, query recent logs:
    • oci logging search search-logs --region <region> --search-query "search \"<log_group_ocid>/<log_ocid>\" | where data.loadBalancerId = '<lb_ocid>' | sort by datetime desc" --time-start <iso-start> --time-end <iso-end>
  7. Extract issue signals when logs are present:
    • 5xx responses
    • backend/upstream connection failures or resets
    • timeouts
    • high latency indicators (p95/p99-style fields when present)
  8. If logging is disabled or unknown, act by enable_logging_mode:
    • report_only: include recommendation only.
    • print_command_only: include exact enable command.
    • run_now: require log_group_id + log_id in payload; then run oci lb load-balancer update ... --access-log ....

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 144 lines · 27 tokens per session scan A 941f22a2df68

Subscribe to this mod's changes

oke-lb-log-collector is an agent published in the GitHub repository chiphwang1/oke-agent-plugin (2 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 1,535 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.