Skip to content

fix(cloud-init): parse Zeek NDJSON and attribute bandwidth by SNI with DNS/IP fallback#32

Merged
ms2008 merged 1 commit into
masterfrom
fix/zeek
Jun 9, 2026
Merged

fix(cloud-init): parse Zeek NDJSON and attribute bandwidth by SNI with DNS/IP fallback#32
ms2008 merged 1 commit into
masterfrom
fix/zeek

Conversation

@Water-Melon

Copy link
Copy Markdown
Collaborator

GHASR-89

Copilot AI review requested due to automatic review settings June 9, 2026 08:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the runner job completion hook generated by cloud-init.sh.tmpl to correctly aggregate Zeek NDJSON logs and attribute network bandwidth to a domain using TLS SNI, with a DNS (answer IP → query name) fallback and final fallback to the responder IP.

Changes:

  • Extend send_metrics to optionally append an additional tag fragment for specialized metrics.
  • Make Zeek log parsing resilient to missing ssl.log and dns.log (treat as empty).
  • Replace the prior multi-input jq -s approach with --slurpfile-based parsing to properly handle NDJSON and add DNS/IP fallback for domain attribution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ms2008 ms2008 merged commit 9e0e35a into master Jun 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants