# OTLP JSON File Receiver | Status | | | ------------- |-----------| | Stability | [alpha]: traces, metrics, logs | | Distributions | [contrib], [sumo] | | Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Areceiver%2Fotlpjsonfile%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Fotlpjsonfile) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Areceiver%2Fotlpjsonfile%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Fotlpjsonfile) | | [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski), [@atoulme](https://www.github.com/atoulme) | [alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha [contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib [sumo]: https://github.com/SumoLogic/sumologic-otel-collector This receiver will read pipeline data from JSON files. The data is written in [Protobuf JSON encoding](https://developers.google.com/protocol-buffers/docs/proto3#json) using [OpenTelemetry protocol](https://github.com/open-telemetry/opentelemetry-proto). The receiver will watch the directory and read files. If a file is updated or added, the receiver will read it in its entirety again. Please note that there is no guarantee that exact field names will remain stable. This intended for primarily for debugging Collector without setting up backends. ## Getting Started The following settings are required: - `include`: set a glob path of files to include in data collection Example: ```yaml receivers: otlpjsonfile: include: - "/var/log/*.log" exclude: - "/var/log/example.log" ```