Skip to content

feat: add ns-clm (Cloud Log Manager)#1577

Open
gsanchietti wants to merge 1 commit intomainfrom
clm
Open

feat: add ns-clm (Cloud Log Manager)#1577
gsanchietti wants to merge 1 commit intomainfrom
clm

Conversation

@gsanchietti
Copy link
Copy Markdown
Member

@gsanchietti gsanchietti commented Mar 31, 2026

Forward logs to Nethesis Cloud Log Manager

How to test it:

uci set ns-clm.config.uuid="L$(uuidgen)"
uci set ns-clm.config.tenant='12345'
uci set ns-clm.config.enabled='1'
uci commit ns-clm
reload_config

Companion PRs:

@gsanchietti gsanchietti requested a review from Copilot March 31, 2026 09:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds the ns-clm (Cloud Log Manager) feature to NethSecurity, introducing an OpenWrt package that forwards syslog entries to the Nethesis CLM service and exposes an RPCD API (ns.clm) to manage its configuration.

Changes:

  • Introduce ns-clm package (init script, UCI config defaults, Python forwarder daemon, README).
  • Add ns.clm RPCD endpoint and ACL, and install it via ns-api package Makefile.
  • Enable building ns-clm via build configuration (config/ns-clm.conf).

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
packages/ns-clm/README.md Documents configuration, API usage, and forwarder behavior.
packages/ns-clm/Makefile Defines the new ns-clm OpenWrt package, installation steps, and dependencies.
packages/ns-clm/files/ns-clm.init procd init script to start/stop the forwarder based on UCI config and subscription UUID.
packages/ns-clm/files/ns-clm-forwarder Python daemon that tails /var/log/messages, filters/batches entries, and forwards to CLM over HTTP.
packages/ns-clm/files/config Default UCI configuration for ns-clm.
packages/ns-clm/files/20_ns-clm uci-defaults script to create runtime directory.
packages/ns-api/Makefile Installs the new ns.clm RPCD handler and ACL into the ns-api package.
packages/ns-api/files/ns.clm.json ACL entry granting access to the ns.clm ubus object.
packages/ns-api/files/ns.clm RPCD handler implementing get-config and set-config for ns-clm.
config/ns-clm.conf Enables building the ns-clm package in the build configuration.

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

@Tbaile Tbaile linked an issue Apr 1, 2026 that may be closed by this pull request
Forward logs to Nethesis Cloud Log Manager
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.

CLM agent for NethSecurity

3 participants