Skip to content

Commit

Permalink
Adds syslog-ng-otlp tab to grpc auth chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
eldarnash committed Nov 11, 2023
1 parent 1a35283 commit 682e774
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions content/headless/chunk/grpc-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---
<!-- This file is under the copyright of Axoflow, and licensed under Apache License 2.0, except for using the Axoflow and AxoSyslog trademarks. -->

<!-- Used in the opentelemetry() and loki() drivers -->
<!-- Used in the opentelemetry(), loki(), and syslog-ng-otlp drivers -->
## auth() {#auth}

You can set authentication in the `auth()` option of the driver. By default, authentication is disabled (`auth(insecure())`).
Expand All @@ -23,7 +23,7 @@ The following authentication methods are available in the `auth()` block:
```shell
source {
opentelemetry(
port(12345)
port(4317)
auth(alts())
);
};
Expand All @@ -39,6 +39,16 @@ destination {
};
```
{{% /tab %}}
{{% tab header="`syslog-ng-otlp()`" lang="syslog-ng-otlp" %}}
```shell
source {
syslog-ng-otlp(
port(4317)
auth(alts())
);
};
```
{{% /tab %}}
{{< /tabpane >}}

### insecure() {#insecure}
Expand Down Expand Up @@ -86,6 +96,22 @@ destination {
};
```
{{% /tab %}}
{{% tab header="`syslog-ng-otlp()`" lang="syslog-ng-otlp" %}}
```shell
destination {
syslog-ng-otlp(
url("your-otel-server:12346")
auth(
tls(
ca-file("/path/to/ca.pem")
key-file("/path/to/key.pem")
cert-file("/path/to/cert.pem")
)
)
);
};
```
{{% /tab %}}
{{< /tabpane >}}

> Note:
Expand Down

0 comments on commit 682e774

Please sign in to comment.