File tree 5 files changed +96
-0
lines changed
5 files changed +96
-0
lines changed Original file line number Diff line number Diff line change
1
+ ` signal-slot-connector ` : a generic event handler interface for syslog-ng modules
2
+
3
+ * The concept is simple:
4
+
5
+ There is a SignalSlotConnector which stores Signal - Slot connections
6
+ Signal : Slot = 1 : N, so multiple slots can be assigned to the same Signal.
7
+ When a Signal is emitted, the connected Slots are executed.
8
+ Signals are string literals and each module can define its own signals.
9
+
10
+ * Interface/protocol between signals and slots
11
+
12
+ A macro (SIGNAL) can be used for defining signals as string literals:
13
+
14
+ ```
15
+ SIGNAL(module_name, signal, signal_parameter_type)
16
+ ```
17
+
18
+ The parameter type is for expressing a kind of contract between signals and slots.
19
+
20
+ usage:
21
+
22
+ ```
23
+ #define signal_cfg_reloaded SIGNAL(config, reloaded, GlobalConfig)
24
+
25
+ the generated literal:
26
+
27
+ "config::signal_reloaded(GlobalConfig *)"
28
+ ```
29
+
30
+ emit passes the argument to the slots connected to the emitted signal.
31
+
Original file line number Diff line number Diff line change
1
+ ` http ` : define HTTP signals
2
+
3
+ This changeset defines the Signal interface for HTTP - with one signal at this time.
4
+
5
+ What's in the changeset?
6
+
7
+ * List ADT (abstract data type for list implementations) added to lib.
8
+ * Interface:
9
+ * append
10
+ * foreach
11
+ * is_empty
12
+ * remove_all
13
+
14
+ Implement the List ADT in http module with ` struct curl_slist ` for storing the headers.
15
+
16
+ * HTTP signal(s):
17
+ Currently only one signal is added, ` header_request ` .
18
+
19
+ Note, that the license for ` http-signals.h ` is * LGPL* .
20
+
Original file line number Diff line number Diff line change
1
+ ` azure-auth-header ` : Azure auth header is a plugin that generates
2
+ authorization header for applications connecting to Azure.
3
+ It can be used as a building block in higher level SCLs.
4
+ Implemented as a ` signal-slot ` plugin.
5
+
6
+ <details >
7
+ <summary >Example config, click to expand!</summary >
8
+
9
+ ```
10
+ @version:3.25
11
+ @include "scl.conf"
12
+ destination d_http {
13
+ http(
14
+ url("http://127.0.0.1:8888")
15
+ method("PUT")
16
+ user_agent("syslog-ng User Agent")
17
+ body("${ISODATE} ${MESSAGE}")
18
+ azure-auth-header(
19
+ workspace-id("workspace-id")
20
+ secret("aa1a")
21
+ method("POST")
22
+ path("/api/logs")
23
+ content-type("application/json")
24
+ )
25
+ );
26
+ };
27
+ source s_gen {
28
+ example-msg-generator(num(1) template("Test message\n"));
29
+ };
30
+ log {
31
+ source(s_gen);
32
+ destination(d_http);
33
+ };
34
+ ```
35
+ </details >
Original file line number Diff line number Diff line change
1
+ ` http ` : ` use-system-cert-store ` functionality has been changed
2
+
3
+ This option was added in order to support monolithic installations
4
+ that ships even libcurl... But later, as it came out, it's not enough.
5
+ What we really need is to do some autodetection regarding ca-file and ca-dir.
6
+ In monolithic installations we enable this by default in the related SCLs.
7
+
Original file line number Diff line number Diff line change
1
+ ` afmongodb ` : remove the support of deprecated legacy configurations
2
+
3
+
You can’t perform that action at this time.
0 commit comments