@bsb/syslog 9.1.3 → 9.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +660 -660
- package/lib/plugins/observable-syslog/index.d.ts +34 -34
- package/lib/plugins/observable-syslog/index.js +19 -19
- package/lib/plugins/service-syslog-server/index.d.ts +10 -10
- package/lib/plugins/service-syslog-server/index.js +11 -11
- package/lib/schemas/observable-syslog.json +109 -75
- package/lib/schemas/observable-syslog.plugin.json +109 -75
- package/lib/schemas/service-syslog-server.json +29 -22
- package/lib/schemas/service-syslog-server.plugin.json +28 -21
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "observable-syslog",
|
|
3
3
|
"name": "observable-syslog",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.6.14",
|
|
5
5
|
"description": "Syslog client observable plugin for forwarding logs to syslog servers",
|
|
6
6
|
"category": "observable",
|
|
7
7
|
"tags": [
|
|
@@ -23,37 +23,37 @@
|
|
|
23
23
|
"image": "./assets/syslog-icon.png",
|
|
24
24
|
"configSchema": {
|
|
25
25
|
"anyvaliVersion": "1.0",
|
|
26
|
-
"schemaVersion": "1",
|
|
26
|
+
"schemaVersion": "1.1",
|
|
27
27
|
"root": {
|
|
28
28
|
"kind": "object",
|
|
29
29
|
"properties": {
|
|
30
30
|
"host": {
|
|
31
|
-
"kind": "
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
"kind": "string",
|
|
32
|
+
"default": "localhost",
|
|
33
|
+
"metadata": {
|
|
34
|
+
"description": "Syslog server hostname"
|
|
35
|
+
}
|
|
36
36
|
},
|
|
37
37
|
"port": {
|
|
38
|
-
"kind": "
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
"kind": "int32",
|
|
39
|
+
"min": 1,
|
|
40
|
+
"max": 65535,
|
|
41
|
+
"default": 514,
|
|
42
|
+
"metadata": {
|
|
43
|
+
"description": "Syslog server port"
|
|
44
|
+
}
|
|
45
45
|
},
|
|
46
46
|
"protocol": {
|
|
47
|
-
"kind": "
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
"kind": "enum",
|
|
48
|
+
"values": [
|
|
49
|
+
"udp",
|
|
50
|
+
"tcp",
|
|
51
|
+
"tls"
|
|
52
|
+
],
|
|
53
|
+
"default": "udp",
|
|
54
|
+
"metadata": {
|
|
55
|
+
"description": "Transport protocol used to send syslog messages"
|
|
56
|
+
}
|
|
57
57
|
},
|
|
58
58
|
"tls": {
|
|
59
59
|
"kind": "optional",
|
|
@@ -61,108 +61,142 @@
|
|
|
61
61
|
"kind": "object",
|
|
62
62
|
"properties": {
|
|
63
63
|
"rejectUnauthorized": {
|
|
64
|
-
"kind": "
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
"kind": "bool",
|
|
65
|
+
"default": true,
|
|
66
|
+
"metadata": {
|
|
67
|
+
"description": "Whether TLS certificate validation rejects unauthorized certificates"
|
|
68
|
+
}
|
|
69
69
|
},
|
|
70
70
|
"ca": {
|
|
71
71
|
"kind": "optional",
|
|
72
72
|
"inner": {
|
|
73
73
|
"kind": "string"
|
|
74
|
+
},
|
|
75
|
+
"metadata": {
|
|
76
|
+
"description": "Optional TLS certificate authority data"
|
|
74
77
|
}
|
|
75
78
|
},
|
|
76
79
|
"cert": {
|
|
77
80
|
"kind": "optional",
|
|
78
81
|
"inner": {
|
|
79
82
|
"kind": "string"
|
|
83
|
+
},
|
|
84
|
+
"metadata": {
|
|
85
|
+
"description": "Optional TLS client certificate data"
|
|
80
86
|
}
|
|
81
87
|
},
|
|
82
88
|
"key": {
|
|
83
89
|
"kind": "optional",
|
|
84
90
|
"inner": {
|
|
85
91
|
"kind": "string"
|
|
92
|
+
},
|
|
93
|
+
"metadata": {
|
|
94
|
+
"description": "Optional TLS client private key data"
|
|
86
95
|
}
|
|
87
96
|
}
|
|
88
97
|
},
|
|
89
|
-
"required": [
|
|
90
|
-
|
|
98
|
+
"required": [
|
|
99
|
+
"rejectUnauthorized"
|
|
100
|
+
],
|
|
101
|
+
"unknownKeys": "strip",
|
|
102
|
+
"metadata": {
|
|
103
|
+
"description": "TLS connection settings for syslog transport"
|
|
104
|
+
}
|
|
91
105
|
}
|
|
92
106
|
},
|
|
93
107
|
"facility": {
|
|
94
|
-
"kind": "
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
108
|
+
"kind": "int32",
|
|
109
|
+
"min": 0,
|
|
110
|
+
"max": 23,
|
|
111
|
+
"default": 16,
|
|
112
|
+
"metadata": {
|
|
113
|
+
"description": "Syslog facility code"
|
|
114
|
+
}
|
|
101
115
|
},
|
|
102
116
|
"hostname": {
|
|
103
117
|
"kind": "optional",
|
|
104
118
|
"inner": {
|
|
105
119
|
"kind": "string"
|
|
120
|
+
},
|
|
121
|
+
"metadata": {
|
|
122
|
+
"description": "Hostname reported in syslog messages, defaulting to the local hostname"
|
|
106
123
|
}
|
|
107
124
|
},
|
|
108
125
|
"appName": {
|
|
109
|
-
"kind": "
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
126
|
+
"kind": "string",
|
|
127
|
+
"default": "bsb-app",
|
|
128
|
+
"metadata": {
|
|
129
|
+
"description": "Application name reported in syslog messages"
|
|
130
|
+
}
|
|
114
131
|
},
|
|
115
132
|
"rfc": {
|
|
116
|
-
"kind": "
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
133
|
+
"kind": "enum",
|
|
134
|
+
"values": [
|
|
135
|
+
"3164",
|
|
136
|
+
"5424"
|
|
137
|
+
],
|
|
138
|
+
"default": "5424",
|
|
139
|
+
"metadata": {
|
|
140
|
+
"description": "Syslog message format RFC"
|
|
141
|
+
}
|
|
125
142
|
},
|
|
126
143
|
"levels": {
|
|
127
144
|
"kind": "object",
|
|
128
145
|
"properties": {
|
|
129
146
|
"debug": {
|
|
130
|
-
"kind": "
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
147
|
+
"kind": "bool",
|
|
148
|
+
"default": true,
|
|
149
|
+
"metadata": {
|
|
150
|
+
"description": "Whether debug logs are sent to syslog"
|
|
151
|
+
}
|
|
135
152
|
},
|
|
136
153
|
"info": {
|
|
137
|
-
"kind": "
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
154
|
+
"kind": "bool",
|
|
155
|
+
"default": true,
|
|
156
|
+
"metadata": {
|
|
157
|
+
"description": "Whether info logs are sent to syslog"
|
|
158
|
+
}
|
|
142
159
|
},
|
|
143
160
|
"warn": {
|
|
144
|
-
"kind": "
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
161
|
+
"kind": "bool",
|
|
162
|
+
"default": true,
|
|
163
|
+
"metadata": {
|
|
164
|
+
"description": "Whether warning logs are sent to syslog"
|
|
165
|
+
}
|
|
149
166
|
},
|
|
150
167
|
"error": {
|
|
151
|
-
"kind": "
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
168
|
+
"kind": "bool",
|
|
169
|
+
"default": true,
|
|
170
|
+
"metadata": {
|
|
171
|
+
"description": "Whether error logs are sent to syslog"
|
|
172
|
+
}
|
|
156
173
|
}
|
|
157
174
|
},
|
|
158
|
-
"required": [
|
|
159
|
-
|
|
175
|
+
"required": [
|
|
176
|
+
"debug",
|
|
177
|
+
"info",
|
|
178
|
+
"warn",
|
|
179
|
+
"error"
|
|
180
|
+
],
|
|
181
|
+
"unknownKeys": "strip",
|
|
182
|
+
"metadata": {
|
|
183
|
+
"description": "Log level enablement"
|
|
184
|
+
}
|
|
160
185
|
}
|
|
161
186
|
},
|
|
162
187
|
"required": [
|
|
188
|
+
"host",
|
|
189
|
+
"port",
|
|
190
|
+
"protocol",
|
|
191
|
+
"facility",
|
|
192
|
+
"appName",
|
|
193
|
+
"rfc",
|
|
163
194
|
"levels"
|
|
164
195
|
],
|
|
165
|
-
"unknownKeys": "strip"
|
|
196
|
+
"unknownKeys": "strip",
|
|
197
|
+
"metadata": {
|
|
198
|
+
"description": "Syslog client observable plugin configuration"
|
|
199
|
+
}
|
|
166
200
|
},
|
|
167
201
|
"definitions": {},
|
|
168
202
|
"extensions": {}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"description": "Syslog message received from client",
|
|
8
8
|
"inputSchema": {
|
|
9
9
|
"anyvaliVersion": "1.0",
|
|
10
|
-
"schemaVersion": "1",
|
|
10
|
+
"schemaVersion": "1.1",
|
|
11
11
|
"root": {
|
|
12
12
|
"kind": "object",
|
|
13
13
|
"properties": {
|
|
@@ -46,39 +46,46 @@
|
|
|
46
46
|
"outputSchema": null
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"version": "9.
|
|
49
|
+
"version": "9.6.14",
|
|
50
50
|
"configSchema": {
|
|
51
51
|
"anyvaliVersion": "1.0",
|
|
52
|
-
"schemaVersion": "1",
|
|
52
|
+
"schemaVersion": "1.1",
|
|
53
53
|
"root": {
|
|
54
54
|
"kind": "object",
|
|
55
55
|
"properties": {
|
|
56
56
|
"port": {
|
|
57
|
-
"kind": "
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
"kind": "int32",
|
|
58
|
+
"min": 1,
|
|
59
|
+
"max": 65535,
|
|
60
|
+
"default": 514,
|
|
61
|
+
"metadata": {
|
|
62
|
+
"description": "UDP port the syslog server listens on"
|
|
63
|
+
}
|
|
64
64
|
},
|
|
65
65
|
"address": {
|
|
66
|
-
"kind": "
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
"kind": "string",
|
|
67
|
+
"default": "0.0.0.0",
|
|
68
|
+
"metadata": {
|
|
69
|
+
"description": "Network address the syslog server binds to"
|
|
70
|
+
}
|
|
71
71
|
},
|
|
72
72
|
"exclusive": {
|
|
73
|
-
"kind": "
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
"kind": "bool",
|
|
74
|
+
"default": false,
|
|
75
|
+
"metadata": {
|
|
76
|
+
"description": "Whether the server requests exclusive address binding"
|
|
77
|
+
}
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
-
"required": [
|
|
81
|
-
|
|
80
|
+
"required": [
|
|
81
|
+
"port",
|
|
82
|
+
"address",
|
|
83
|
+
"exclusive"
|
|
84
|
+
],
|
|
85
|
+
"unknownKeys": "strip",
|
|
86
|
+
"metadata": {
|
|
87
|
+
"description": "Syslog server plugin configuration"
|
|
88
|
+
}
|
|
82
89
|
},
|
|
83
90
|
"definitions": {},
|
|
84
91
|
"extensions": {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "service-syslog-server",
|
|
3
3
|
"name": "service-syslog-server",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.6.14",
|
|
5
5
|
"description": "Syslog server service plugin that receives messages and emits events",
|
|
6
6
|
"category": "service",
|
|
7
7
|
"tags": [
|
|
@@ -23,36 +23,43 @@
|
|
|
23
23
|
"image": "./assets/syslog-icon.png",
|
|
24
24
|
"configSchema": {
|
|
25
25
|
"anyvaliVersion": "1.0",
|
|
26
|
-
"schemaVersion": "1",
|
|
26
|
+
"schemaVersion": "1.1",
|
|
27
27
|
"root": {
|
|
28
28
|
"kind": "object",
|
|
29
29
|
"properties": {
|
|
30
30
|
"port": {
|
|
31
|
-
"kind": "
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
"kind": "int32",
|
|
32
|
+
"min": 1,
|
|
33
|
+
"max": 65535,
|
|
34
|
+
"default": 514,
|
|
35
|
+
"metadata": {
|
|
36
|
+
"description": "UDP port the syslog server listens on"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"address": {
|
|
40
|
-
"kind": "
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
"kind": "string",
|
|
41
|
+
"default": "0.0.0.0",
|
|
42
|
+
"metadata": {
|
|
43
|
+
"description": "Network address the syslog server binds to"
|
|
44
|
+
}
|
|
45
45
|
},
|
|
46
46
|
"exclusive": {
|
|
47
|
-
"kind": "
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
"kind": "bool",
|
|
48
|
+
"default": false,
|
|
49
|
+
"metadata": {
|
|
50
|
+
"description": "Whether the server requests exclusive address binding"
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"required": [
|
|
55
|
-
|
|
54
|
+
"required": [
|
|
55
|
+
"port",
|
|
56
|
+
"address",
|
|
57
|
+
"exclusive"
|
|
58
|
+
],
|
|
59
|
+
"unknownKeys": "strip",
|
|
60
|
+
"metadata": {
|
|
61
|
+
"description": "Syslog server plugin configuration"
|
|
62
|
+
}
|
|
56
63
|
},
|
|
57
64
|
"definitions": {},
|
|
58
65
|
"extensions": {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsb/syslog",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "(AGPL-3.0-only OR Commercial)",
|
|
6
6
|
"author": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/BetterCorp/better-service-base
|
|
22
|
+
"url": "https://github.com/BetterCorp/better-service-base",
|
|
23
23
|
"directory": "plugins/nodejs/syslog"
|
|
24
24
|
},
|
|
25
25
|
"main": "lib/index.js",
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"prepublishOnly": "npm run build"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@bsb/base": "^9.
|
|
42
|
+
"@bsb/base": "^9.6.14"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"
|
|
45
|
+
"anyvali": "^1.0.6",
|
|
46
46
|
"syslog-client": "^1.1.1",
|
|
47
47
|
"syslog-server": "^1.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@bsb/base": "^9.
|
|
50
|
+
"@bsb/base": "^9.6.14",
|
|
51
51
|
"@types/node": "^25.6.0",
|
|
52
|
-
"mocha": "^11.
|
|
53
|
-
"typescript": "^
|
|
52
|
+
"mocha": "^11.7.6",
|
|
53
|
+
"typescript": "^6.0.3"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
|
-
"node": ">=
|
|
56
|
+
"node": ">=24.0.0",
|
|
57
57
|
"npm": ">=11.0.0"
|
|
58
58
|
},
|
|
59
59
|
"homepage": "https://io.bsbcode.dev/packages/nodejs/@bsb/syslog"
|