You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: logs.rst
+68-1Lines changed: 68 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ Logs are initially written to a temporary in-memory directory to prevent potenti
12
12
13
13
3. **Custom Syslog Forwarder**: Logs can be sent to a remote syslog server.
14
14
15
-
The next paragraph will explain how to configure this latter option.
15
+
4. **Cloud Log Manager**: Logs can be forwarded to the Nethesis Cloud Log Manager (CLM) service.
16
+
17
+
The next paragraphs will explain how to configure these latter options.
16
18
17
19
Forwarding to a remote server
18
20
=============================
@@ -48,6 +50,71 @@ It is possible also to configure RFC 5424 using the same syntax: ::
48
50
49
51
It is possible to configure multiple forwarders by repeating the operation using a different configuration name like ``clm2``.
50
52
53
+
Forwarding to Cloud Log Manager
54
+
================================
55
+
56
+
.. admonition:: Service entitlement required
57
+
58
+
You need to purchase a subscription for the CLM service from Nethesis and obtain the tenant identifier.
59
+
The service is currenlty reserved to Enterprise customers. For more information, please contact Nethesis sales.
60
+
61
+
The ``ns-clm`` package forwards syslog messages to the Nethesis Cloud Log Manager (CLM) service.
62
+
It provides the ``ns-clm-forwarder`` daemon, which tails ``/var/log/messages`` and tracks its read position in ``/var/run/ns-clm/last_offset``.
63
+
New syslog lines are parsed, batched, and sent as JSON via HTTP POST to the CLM endpoint.
64
+
The daemon polls for new lines every 10 seconds, detects log rotation automatically, and persists the offset on shutdown so it can resume after a restart.
65
+
66
+
The package is not included by default on NethSecurity 8.7.2 or earlier, but it is available in the package repository and can be
67
+
manually installed.
68
+
Install it with: ::
69
+
70
+
opkg update
71
+
opkg install ns-clm
72
+
73
+
The UCI configuration is stored in ``/etc/config/ns-clm``:
74
+
75
+
.. list-table::
76
+
:header-rows: 1
77
+
:widths: 20 30 50
78
+
79
+
* - Option
80
+
- Default
81
+
- Description
82
+
* - ``enabled``
83
+
- ``0``
84
+
- Enable (``1``) or disable (``0``) the forwarder
85
+
* - ``uuid``
86
+
- (empty)
87
+
- Unique identifier for the device, generated with ``uuidgen`` and prefixed with "L" to ensure it starts with a letter
88
+
- This is required for the CLM service to identify the source of the logs
0 commit comments