@bsb/syslog 9.1.2 → 9.1.3
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/lib/plugins/observable-syslog/index.js +1 -1
- package/lib/plugins/service-syslog-server/index.js +1 -1
- package/lib/schemas/observable-syslog.json +147 -1
- package/lib/schemas/observable-syslog.plugin.json +157 -3
- package/lib/schemas/service-syslog-server.json +37 -1
- package/lib/schemas/service-syslog-server.plugin.json +47 -3
- package/package.json +4 -4
|
@@ -56,9 +56,9 @@ export const SyslogClientConfigSchema = av.object({
|
|
|
56
56
|
export const Config = createConfigSchema({
|
|
57
57
|
name: 'observable-syslog',
|
|
58
58
|
description: 'Syslog client observable plugin for forwarding logs to syslog servers',
|
|
59
|
-
version: '9.0.0',
|
|
60
59
|
image: './assets/syslog-icon.png',
|
|
61
60
|
tags: ['syslog', 'logging', 'observable', 'network'],
|
|
61
|
+
documentation: ['./docs/syslog-client.md'],
|
|
62
62
|
}, SyslogClientConfigSchema);
|
|
63
63
|
/**
|
|
64
64
|
* Convert BSB log level to syslog severity
|
|
@@ -50,9 +50,9 @@ export const SyslogServerConfigSchema = av.object({
|
|
|
50
50
|
export const Config = createConfigSchema({
|
|
51
51
|
name: 'service-syslog-server',
|
|
52
52
|
description: 'Syslog server service plugin that receives messages and emits events',
|
|
53
|
-
version: '9.0.0',
|
|
54
53
|
image: './assets/syslog-icon.png',
|
|
55
54
|
tags: ['syslog', 'server', 'service', 'events'],
|
|
55
|
+
documentation: ['./docs/syslog-server.md'],
|
|
56
56
|
}, SyslogServerConfigSchema);
|
|
57
57
|
/**
|
|
58
58
|
* Event schemas for syslog server
|
|
@@ -1,7 +1,153 @@
|
|
|
1
1
|
{
|
|
2
2
|
"pluginName": "observable-syslog",
|
|
3
|
-
"version": "9.0.0",
|
|
4
3
|
"events": {},
|
|
4
|
+
"version": "9.1.3",
|
|
5
|
+
"configSchema": {
|
|
6
|
+
"anyvaliVersion": "1.0",
|
|
7
|
+
"schemaVersion": "1",
|
|
8
|
+
"root": {
|
|
9
|
+
"kind": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"host": {
|
|
12
|
+
"kind": "optional",
|
|
13
|
+
"inner": {
|
|
14
|
+
"kind": "string"
|
|
15
|
+
},
|
|
16
|
+
"default": "localhost"
|
|
17
|
+
},
|
|
18
|
+
"port": {
|
|
19
|
+
"kind": "optional",
|
|
20
|
+
"inner": {
|
|
21
|
+
"kind": "int32",
|
|
22
|
+
"min": 1,
|
|
23
|
+
"max": 65535
|
|
24
|
+
},
|
|
25
|
+
"default": 514
|
|
26
|
+
},
|
|
27
|
+
"protocol": {
|
|
28
|
+
"kind": "optional",
|
|
29
|
+
"inner": {
|
|
30
|
+
"kind": "enum",
|
|
31
|
+
"values": [
|
|
32
|
+
"udp",
|
|
33
|
+
"tcp",
|
|
34
|
+
"tls"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"default": "udp"
|
|
38
|
+
},
|
|
39
|
+
"tls": {
|
|
40
|
+
"kind": "optional",
|
|
41
|
+
"inner": {
|
|
42
|
+
"kind": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"rejectUnauthorized": {
|
|
45
|
+
"kind": "optional",
|
|
46
|
+
"inner": {
|
|
47
|
+
"kind": "bool"
|
|
48
|
+
},
|
|
49
|
+
"default": true
|
|
50
|
+
},
|
|
51
|
+
"ca": {
|
|
52
|
+
"kind": "optional",
|
|
53
|
+
"inner": {
|
|
54
|
+
"kind": "string"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"cert": {
|
|
58
|
+
"kind": "optional",
|
|
59
|
+
"inner": {
|
|
60
|
+
"kind": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"key": {
|
|
64
|
+
"kind": "optional",
|
|
65
|
+
"inner": {
|
|
66
|
+
"kind": "string"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [],
|
|
71
|
+
"unknownKeys": "strip"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"facility": {
|
|
75
|
+
"kind": "optional",
|
|
76
|
+
"inner": {
|
|
77
|
+
"kind": "int32",
|
|
78
|
+
"min": 0,
|
|
79
|
+
"max": 23
|
|
80
|
+
},
|
|
81
|
+
"default": 16
|
|
82
|
+
},
|
|
83
|
+
"hostname": {
|
|
84
|
+
"kind": "optional",
|
|
85
|
+
"inner": {
|
|
86
|
+
"kind": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"appName": {
|
|
90
|
+
"kind": "optional",
|
|
91
|
+
"inner": {
|
|
92
|
+
"kind": "string"
|
|
93
|
+
},
|
|
94
|
+
"default": "bsb-app"
|
|
95
|
+
},
|
|
96
|
+
"rfc": {
|
|
97
|
+
"kind": "optional",
|
|
98
|
+
"inner": {
|
|
99
|
+
"kind": "enum",
|
|
100
|
+
"values": [
|
|
101
|
+
"3164",
|
|
102
|
+
"5424"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"default": "5424"
|
|
106
|
+
},
|
|
107
|
+
"levels": {
|
|
108
|
+
"kind": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"debug": {
|
|
111
|
+
"kind": "optional",
|
|
112
|
+
"inner": {
|
|
113
|
+
"kind": "bool"
|
|
114
|
+
},
|
|
115
|
+
"default": true
|
|
116
|
+
},
|
|
117
|
+
"info": {
|
|
118
|
+
"kind": "optional",
|
|
119
|
+
"inner": {
|
|
120
|
+
"kind": "bool"
|
|
121
|
+
},
|
|
122
|
+
"default": true
|
|
123
|
+
},
|
|
124
|
+
"warn": {
|
|
125
|
+
"kind": "optional",
|
|
126
|
+
"inner": {
|
|
127
|
+
"kind": "bool"
|
|
128
|
+
},
|
|
129
|
+
"default": true
|
|
130
|
+
},
|
|
131
|
+
"error": {
|
|
132
|
+
"kind": "optional",
|
|
133
|
+
"inner": {
|
|
134
|
+
"kind": "bool"
|
|
135
|
+
},
|
|
136
|
+
"default": true
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": [],
|
|
140
|
+
"unknownKeys": "strip"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"levels"
|
|
145
|
+
],
|
|
146
|
+
"unknownKeys": "strip"
|
|
147
|
+
},
|
|
148
|
+
"definitions": {},
|
|
149
|
+
"extensions": {}
|
|
150
|
+
},
|
|
5
151
|
"pluginType": "observable",
|
|
6
152
|
"capabilities": {
|
|
7
153
|
"logging": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "observable-syslog",
|
|
3
3
|
"name": "observable-syslog",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.1.3",
|
|
5
5
|
"description": "Syslog client observable plugin for forwarding logs to syslog servers",
|
|
6
6
|
"category": "observable",
|
|
7
7
|
"tags": [
|
|
@@ -10,7 +10,161 @@
|
|
|
10
10
|
"observable",
|
|
11
11
|
"network"
|
|
12
12
|
],
|
|
13
|
-
"documentation": [
|
|
13
|
+
"documentation": [
|
|
14
|
+
"./docs/syslog-client.md"
|
|
15
|
+
],
|
|
14
16
|
"dependencies": [],
|
|
15
|
-
"
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "BetterCorp (PTY) Ltd",
|
|
19
|
+
"email": "ninja@bettercorp.dev",
|
|
20
|
+
"url": "https://bettercorp.dev/"
|
|
21
|
+
},
|
|
22
|
+
"license": "(AGPL-3.0-only OR Commercial)",
|
|
23
|
+
"image": "./assets/syslog-icon.png",
|
|
24
|
+
"configSchema": {
|
|
25
|
+
"anyvaliVersion": "1.0",
|
|
26
|
+
"schemaVersion": "1",
|
|
27
|
+
"root": {
|
|
28
|
+
"kind": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"host": {
|
|
31
|
+
"kind": "optional",
|
|
32
|
+
"inner": {
|
|
33
|
+
"kind": "string"
|
|
34
|
+
},
|
|
35
|
+
"default": "localhost"
|
|
36
|
+
},
|
|
37
|
+
"port": {
|
|
38
|
+
"kind": "optional",
|
|
39
|
+
"inner": {
|
|
40
|
+
"kind": "int32",
|
|
41
|
+
"min": 1,
|
|
42
|
+
"max": 65535
|
|
43
|
+
},
|
|
44
|
+
"default": 514
|
|
45
|
+
},
|
|
46
|
+
"protocol": {
|
|
47
|
+
"kind": "optional",
|
|
48
|
+
"inner": {
|
|
49
|
+
"kind": "enum",
|
|
50
|
+
"values": [
|
|
51
|
+
"udp",
|
|
52
|
+
"tcp",
|
|
53
|
+
"tls"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"default": "udp"
|
|
57
|
+
},
|
|
58
|
+
"tls": {
|
|
59
|
+
"kind": "optional",
|
|
60
|
+
"inner": {
|
|
61
|
+
"kind": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"rejectUnauthorized": {
|
|
64
|
+
"kind": "optional",
|
|
65
|
+
"inner": {
|
|
66
|
+
"kind": "bool"
|
|
67
|
+
},
|
|
68
|
+
"default": true
|
|
69
|
+
},
|
|
70
|
+
"ca": {
|
|
71
|
+
"kind": "optional",
|
|
72
|
+
"inner": {
|
|
73
|
+
"kind": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"cert": {
|
|
77
|
+
"kind": "optional",
|
|
78
|
+
"inner": {
|
|
79
|
+
"kind": "string"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"key": {
|
|
83
|
+
"kind": "optional",
|
|
84
|
+
"inner": {
|
|
85
|
+
"kind": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [],
|
|
90
|
+
"unknownKeys": "strip"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"facility": {
|
|
94
|
+
"kind": "optional",
|
|
95
|
+
"inner": {
|
|
96
|
+
"kind": "int32",
|
|
97
|
+
"min": 0,
|
|
98
|
+
"max": 23
|
|
99
|
+
},
|
|
100
|
+
"default": 16
|
|
101
|
+
},
|
|
102
|
+
"hostname": {
|
|
103
|
+
"kind": "optional",
|
|
104
|
+
"inner": {
|
|
105
|
+
"kind": "string"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"appName": {
|
|
109
|
+
"kind": "optional",
|
|
110
|
+
"inner": {
|
|
111
|
+
"kind": "string"
|
|
112
|
+
},
|
|
113
|
+
"default": "bsb-app"
|
|
114
|
+
},
|
|
115
|
+
"rfc": {
|
|
116
|
+
"kind": "optional",
|
|
117
|
+
"inner": {
|
|
118
|
+
"kind": "enum",
|
|
119
|
+
"values": [
|
|
120
|
+
"3164",
|
|
121
|
+
"5424"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"default": "5424"
|
|
125
|
+
},
|
|
126
|
+
"levels": {
|
|
127
|
+
"kind": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"debug": {
|
|
130
|
+
"kind": "optional",
|
|
131
|
+
"inner": {
|
|
132
|
+
"kind": "bool"
|
|
133
|
+
},
|
|
134
|
+
"default": true
|
|
135
|
+
},
|
|
136
|
+
"info": {
|
|
137
|
+
"kind": "optional",
|
|
138
|
+
"inner": {
|
|
139
|
+
"kind": "bool"
|
|
140
|
+
},
|
|
141
|
+
"default": true
|
|
142
|
+
},
|
|
143
|
+
"warn": {
|
|
144
|
+
"kind": "optional",
|
|
145
|
+
"inner": {
|
|
146
|
+
"kind": "bool"
|
|
147
|
+
},
|
|
148
|
+
"default": true
|
|
149
|
+
},
|
|
150
|
+
"error": {
|
|
151
|
+
"kind": "optional",
|
|
152
|
+
"inner": {
|
|
153
|
+
"kind": "bool"
|
|
154
|
+
},
|
|
155
|
+
"default": true
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": [],
|
|
159
|
+
"unknownKeys": "strip"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"levels"
|
|
164
|
+
],
|
|
165
|
+
"unknownKeys": "strip"
|
|
166
|
+
},
|
|
167
|
+
"definitions": {},
|
|
168
|
+
"extensions": {}
|
|
169
|
+
}
|
|
16
170
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"pluginName": "service-syslog-server",
|
|
3
|
-
"version": "9.0.0",
|
|
4
3
|
"events": {
|
|
5
4
|
"onMessage": {
|
|
6
5
|
"type": "fire-and-forget",
|
|
@@ -47,5 +46,42 @@
|
|
|
47
46
|
"outputSchema": null
|
|
48
47
|
}
|
|
49
48
|
},
|
|
49
|
+
"version": "9.1.3",
|
|
50
|
+
"configSchema": {
|
|
51
|
+
"anyvaliVersion": "1.0",
|
|
52
|
+
"schemaVersion": "1",
|
|
53
|
+
"root": {
|
|
54
|
+
"kind": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"port": {
|
|
57
|
+
"kind": "optional",
|
|
58
|
+
"inner": {
|
|
59
|
+
"kind": "int32",
|
|
60
|
+
"min": 1,
|
|
61
|
+
"max": 65535
|
|
62
|
+
},
|
|
63
|
+
"default": 514
|
|
64
|
+
},
|
|
65
|
+
"address": {
|
|
66
|
+
"kind": "optional",
|
|
67
|
+
"inner": {
|
|
68
|
+
"kind": "string"
|
|
69
|
+
},
|
|
70
|
+
"default": "0.0.0.0"
|
|
71
|
+
},
|
|
72
|
+
"exclusive": {
|
|
73
|
+
"kind": "optional",
|
|
74
|
+
"inner": {
|
|
75
|
+
"kind": "bool"
|
|
76
|
+
},
|
|
77
|
+
"default": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [],
|
|
81
|
+
"unknownKeys": "strip"
|
|
82
|
+
},
|
|
83
|
+
"definitions": {},
|
|
84
|
+
"extensions": {}
|
|
85
|
+
},
|
|
50
86
|
"pluginType": "service"
|
|
51
87
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "service-syslog-server",
|
|
3
3
|
"name": "service-syslog-server",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.1.3",
|
|
5
5
|
"description": "Syslog server service plugin that receives messages and emits events",
|
|
6
6
|
"category": "service",
|
|
7
7
|
"tags": [
|
|
@@ -10,7 +10,51 @@
|
|
|
10
10
|
"service",
|
|
11
11
|
"events"
|
|
12
12
|
],
|
|
13
|
-
"documentation": [
|
|
13
|
+
"documentation": [
|
|
14
|
+
"./docs/syslog-server.md"
|
|
15
|
+
],
|
|
14
16
|
"dependencies": [],
|
|
15
|
-
"
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "BetterCorp (PTY) Ltd",
|
|
19
|
+
"email": "ninja@bettercorp.dev",
|
|
20
|
+
"url": "https://bettercorp.dev/"
|
|
21
|
+
},
|
|
22
|
+
"license": "(AGPL-3.0-only OR Commercial)",
|
|
23
|
+
"image": "./assets/syslog-icon.png",
|
|
24
|
+
"configSchema": {
|
|
25
|
+
"anyvaliVersion": "1.0",
|
|
26
|
+
"schemaVersion": "1",
|
|
27
|
+
"root": {
|
|
28
|
+
"kind": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"port": {
|
|
31
|
+
"kind": "optional",
|
|
32
|
+
"inner": {
|
|
33
|
+
"kind": "int32",
|
|
34
|
+
"min": 1,
|
|
35
|
+
"max": 65535
|
|
36
|
+
},
|
|
37
|
+
"default": 514
|
|
38
|
+
},
|
|
39
|
+
"address": {
|
|
40
|
+
"kind": "optional",
|
|
41
|
+
"inner": {
|
|
42
|
+
"kind": "string"
|
|
43
|
+
},
|
|
44
|
+
"default": "0.0.0.0"
|
|
45
|
+
},
|
|
46
|
+
"exclusive": {
|
|
47
|
+
"kind": "optional",
|
|
48
|
+
"inner": {
|
|
49
|
+
"kind": "bool"
|
|
50
|
+
},
|
|
51
|
+
"default": false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [],
|
|
55
|
+
"unknownKeys": "strip"
|
|
56
|
+
},
|
|
57
|
+
"definitions": {},
|
|
58
|
+
"extensions": {}
|
|
59
|
+
}
|
|
16
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsb/syslog",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "(AGPL-3.0-only OR Commercial)",
|
|
6
6
|
"author": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"prepublishOnly": "npm run build"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@bsb/base": "^9.
|
|
42
|
+
"@bsb/base": "^9.1.6"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@anyvali/js": "^0.2.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"syslog-server": "^1.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@bsb/base": "^9.
|
|
51
|
-
"@types/node": "^25.
|
|
50
|
+
"@bsb/base": "^9.1.6",
|
|
51
|
+
"@types/node": "^25.6.0",
|
|
52
52
|
"mocha": "^11.0.0",
|
|
53
53
|
"typescript": "^5.9.0"
|
|
54
54
|
},
|