|
| 1 | +# otlpjson Connector |
| 2 | + |
| 3 | +<!-- status autogenerated section --> |
| 4 | +| Status | | |
| 5 | +| ------------- |-----------| |
| 6 | +| Distributions | [contrib] | |
| 7 | +| Issues | [](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Aconnector%2Fotlpjson) [](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Aconnector%2Fotlpjson) | |
| 8 | +| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski), [@ChrsMark](https://www.github.com/ChrsMark) | |
| 9 | + |
| 10 | +[development]: https://github.com/open-telemetry/opentelemetry-collector#development |
| 11 | +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib |
| 12 | + |
| 13 | +## Supported Pipeline Types |
| 14 | + |
| 15 | +| [Exporter Pipeline Type] | [Receiver Pipeline Type] | [Stability Level] | |
| 16 | +| ------------------------ | ------------------------ | ----------------- | |
| 17 | +| logs | metrics | [development] | |
| 18 | +| logs | traces | [development] | |
| 19 | +| logs | logs | [development] | |
| 20 | + |
| 21 | +[Exporter Pipeline Type]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#exporter-pipeline-type |
| 22 | +[Receiver Pipeline Type]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#receiver-pipeline-type |
| 23 | +[Stability Level]: https://github.com/open-telemetry/opentelemetry-collector#stability-levels |
| 24 | +<!-- end autogenerated section --> |
| 25 | + |
| 26 | +Allows to extract otlpjson data from incoming Logs and specifically the `Body` field. |
| 27 | +The data is written in |
| 28 | +[Protobuf JSON |
| 29 | +encoding](https://developers.google.com/protocol-buffers/docs/proto3#json) |
| 30 | +using [OpenTelemetry |
| 31 | +protocol](https://github.com/open-telemetry/opentelemetry-proto). |
| 32 | + |
| 33 | +## Configuration |
| 34 | + |
| 35 | +#### Configuration Example: |
| 36 | + |
| 37 | +```yaml |
| 38 | +receivers: |
| 39 | + filelog: |
| 40 | + include: |
| 41 | + - /var/log/foo.log |
| 42 | + |
| 43 | +exporters: |
| 44 | + debug: |
| 45 | + |
| 46 | +connectors: |
| 47 | + otlpjson: |
| 48 | + |
| 49 | +service: |
| 50 | + pipelines: |
| 51 | + logs/raw: |
| 52 | + receivers: [filelog] |
| 53 | + exporters: [otlpjson] |
| 54 | + metrics/otlp: |
| 55 | + receivers: [otlpjson] |
| 56 | + exporters: [debug] |
| 57 | + logs/otlp: |
| 58 | + receivers: [otlpjson] |
| 59 | + exporters: [debug] |
| 60 | + traces/otlp: |
| 61 | + receivers: [otlpjson] |
| 62 | + exporters: [debug] |
| 63 | +``` |
| 64 | +
|
| 65 | +[Connectors README]:https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md |
| 66 | +[Exporter Pipeline Type]:https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#exporter-pipeline-type |
| 67 | +[Receiver Pipeline Type]:https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#receiver-pipeline-type |
| 68 | +[contrib]:https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib |
0 commit comments