openobserve-log() destination options
The following options are specific to the openobserve-log() destination.
NOTE: Since this destination is based on the http() destination, the options of the http() destination can be used as well if necessary. The openobserve-log() destination automatically configures some of these http() destination options as required by the OpenObserve Ingest API.
organization()
| Type: | string |
| Default: | "default" |
Description: The name of the OpenObserve organization where syslog-ng OSE sends the data.
password()
| Type: | string |
| Default: | N/A |
Description: The password used to authenticate on the .
port()
| Type: | number |
| Default: |
Description: The port number of the .
record()
| Type: | string |
| Default: | "--scope rfc5424 --exclude DATE --key ISODATE @timestamp=${ISODATE}" |
Description: A JSON object representing key-value pairs sent to OpenObserve, formatted as syslog-ng OSE value-pairs. By default, the openobserve-log() destination sends the RFC-5424 fields as attributes. If you want to send different fields, override the default content of the record() field.
stream()
| Type: | string |
| Default: | "default" |
Description: The OpenObserve stream where syslog-ng OSE sends the data, for example, your-example-stream.
user()
| Type: | string |
| Default: |
Description: The username of the account, for example, root@example.com.
url()
| Type: | string |
| Default: |
Additional options
This driver is implemented as a syslog-ng OSE SCL block. In addition to the options listed above, you can pass any option supported by the underlying driver directly to this block, since it accepts ... (varargs) and forwards any extra parameters to the inner driver. For example, you can use persist-name() to override the automatically generated persist name.