> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/platform-self-hosted/collibra-platform-self-hosted-installation-and-upgrade/monitoring-your-collibra-platform-self-hosted-environment/importing-logs-in-an-observability-tool.md).

# Importing logs in an observability tool

You can [open log files](https://productresources.collibra.com/docs/collibra/latest/Default.htm#cshid=DOC1624) of all CPSH services in Collibra Console. Instead of analyzing log files in Collibra Console, you can also collect them in the observability tool of your choice. To know where to find the log files and what the content is, go to the [Platform configuration section](https://productresources.collibra.com/docs/collibra/latest/Default.htm#cshid=DOC1625).

The path to the log files is typically **/path/to/collibra\_data/\<service name>/logs**.

The following is an example configuration for [OpenTelemetry collector](https://opentelemetry.io/docs/collector/) to collect the logging of the Data Governance Center service. This may be different for the observability tool that you are using.

```yaml
receivers:
  # See more details: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver
  filelog/collibra_dgc:
    include:
      - ${env:COLLIBRA_DATA_PATH}/dgc/logs/dgc.log
    resource:
      service.name: collibra-dgc
    multiline:
      line_start_pattern: \d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}
  
  # Add more filelog receivers for each log that you want to collect

processors:
  # See more details: https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/batchprocessor
  batch:

  # See more details: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor
  resourcedetection:
    detectors:
      - env
      - system

exporters:
  # See more details: https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/debugexporter
  debug:

  # Add appropriate exporter(s) here
  # See all available ones: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter

service:
  pipelines:
    logs:
      receivers:
        - filelog/collibra_dgc
        # Add more filelog receivers for each log that you want to collect
      processors:
        - resourcedetection
        - batch
      exporters:
        - logging
        # Add appropriate exporter(s) here
```
