opentelemetry() source options
This section describes the options of the opentelemetry() source in syslog-ng OSE.
The following options are available for the opentelemetry() source.
auth()
The auth() option can be used to set the authentication of the driver. The default state of this option is insecure, as it is not defined.
The following sub-options are available for auth().
adc()
This option is an authentication method that is only available for destinations. For more information, see Application Default Credentials.
alts()
This option is an accessible authentication available for Google infrastructures. Service accounts can be listed with the nested target-service-account() option, to match these against the server.
Example: configure an opentelemetry() source using auth(alts())
source {
opentelemetry(
port(4317)
auth(alts())
);
};
insecure()
This option can be used to disable authentication: auth(insecure()).
tls()
The tls() option accepts the following nested sub-options.
Example: configure an OpenTelemetry source using auth(tls())
source {
opentelemetry(
port(1234)
auth(
tls(
ca-file("/path/to/ca.pem")
key-file("/path/to/key.pem")
cert-file("/path/to/cert.pem")
peer-verify(yes)
)
)
);
};
channel-args()
| Type: | |
| Default: |
Description: The channel-args() option is available in gRPC-based drivers. The option accepts name-value pairs and sets channel arguments defined in the GRPC Core library documentation.
Example: channel-args() declaration
channel-args(
"grpc.loadreporting" => 1
"grpc.minimal_stack" => 0
)
concurrent-requests()
| Type: | integer |
| Default: | 2 |
Description: This option configures the upper limit of in-flight gRPC requests per worker. It is advisd to set this value in the range of 10s or 100s when there are a high number of clients sending simultaneously. In an optimzed solution, the number of workers() and concurrent-requests() is greater than or equal to the number of clients. However, this can cause an increase in memory usage.
keep-alive()
| Type: | yes or no |
| Default: | yes |
Description: Specifies whether connections to sources should be closed when syslog-ng OSE is forced to reload its configuration (upon the receipt of a SIGHUP signal). Note that this applies to the server (source) side of the syslog-ng OSE connections, client-side (destination) connections are always reopened after receiving a HUP signal unless the keep-alive option is enabled for the destination.
keep-hostname()
The syslog-ng-otlp() and opentelemetry() sources ignore this option and use the hostname from the message as the ${HOST}.
log-fetch-limit()
| Type: | number |
| Default: | 100 |
Description: The maximum number of messages fetched from a source during a single poll loop. The destination queues might fill up before flow-control could stop reading if log-fetch-limit() is too high.
log-iw-size()
| Type: | number |
| Default: | 100 |
Description: The size of the initial source window, this value is used during
flow-control, applies only if flow-control() is enabled.
Note that when using disk-buffer(), the messages stored on disk are not included in the window size calculation.
For details about flow-control and the effects of this parameter, see Managing incoming and outgoing messages with flow-control.
NOTE: If dynamic flow-control is disabled (which is the default behavior), the value of the log-iw-size() option cannot be lower than 100. If dynamic flow-control is enabled, you can decrease the value of the log-iw-size() option (to the minimum of 1).
Make sure that log-iw-size() is larger than the value of log-fetch-limit().
port()
| Type: | number |
| Default: |
Description: The port number of the .
workers()
| Type: | integer |
| Default: | 1 |
Description: Specifies the number of worker threads (at least 1) that syslog-ng OSE uses to send messages to the server. Increasing the number of worker threads can drastically improve the performance of the destination.
CAUTION:
Hazard of data loss! When you use more than one worker threads together with disk-based buffering, syslog-ng OSE creates a separate disk buffer for each worker thread. This means that decreasing the number of workers can result in losing data currently stored in the disk buffer files. Do not decrease the number of workers when the disk buffer files are in use.
If you are using load-balancing (that is, you have configured multiple servers in the url() option), increase the number of worker threads at least to the number of servers. For example, if you have set three URLs (url(“site1”, “site2”, “site3”)), set the workers() option to 3 or more.