# Log Ingestion for File Share not attached to any PC

**URL:** <https://community.dynatrace.com/t/log-ingestion-for-file-share-not-attached-to-any-pc/47032>\
**Category:** Logs\
**Tags:** dynatrace-saas, logs\
**Created:** [August 6, 2024, 1:26pm UTC](https://community.dynatrace.com/t/log-ingestion-for-file-share-not-attached-to-any-pc/47032 "2024-08-06T13:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Travis2](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@Travis2](https://community.dynatrace.com/u/Travis2)\
**Post date:** [August 6, 2024, 1:26pm UTC](https://community.dynatrace.com/t/log-ingestion-for-file-share-not-attached-to-any-pc/47032/1 "2024-08-06T13:26:28Z")

</div>

I have been researching this and wanted to know if anyone has setup log ingestion rules for a file share that is not attached to a pc.&nbsp; We have software that writes its logs to a NFS share drive, however these shares are not attached to the PC, they are browsable from the host.

I assume the one agent need to be able to see the share location somehow, essentially the location to ingest logs will be something like \\hostname\testLogs\test.json

any documentation or guidance will be appreciated.

---

<div class="post-metadata">

**Author:** ![adam\_gardner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_gardner/32/20087_2.png) [@adam\_gardner](https://community.dynatrace.com/u/adam_gardner)\
**Post date:** [August 7, 2024, 7:57am UTC](https://community.dynatrace.com/t/log-ingestion-for-file-share-not-attached-to-any-pc/47032/2 "2024-08-07T07:57:48Z")

</div>

The [Dynatrace OpenTelemetry collector distribution](https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/collector) includes two components I think may help here. The [filelog receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver) (point it at the network share?) and the [syslog receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/syslogreceiver) (if you’re looking at syslog formatted data?)

**config.yaml**

```auto
receivers:
  filelog:
    include:
    - \\dcptest01\testLogs\*.json

processors:
  transform/add_timestamps:
    error_mode: ignore
    log_statements:
      - context: string
      statements:
        - set(observed_time, Now())
        - set(time, Now())
exporters:
  otlphttp/dynatrace:
    endpoint: "${env:DT_ENDPOINT}/api/v2/otlp"
    headers:
      Authorization: "Api-Token ${env:DT_API_TOKEN}"
service:
  pipelines:
    logs:
      receivers: [filelog]
      processors: [transform/add_timestamps]
      exporters: [otlphttp/dynatrace]

```

Then run it in any way you like (Kubernetes cluster, standalone binary on the host, docker etc.)

```auto
// Example running as a standalone binary
export DT_ENDPOINT=https://abc12345.live.dynatrace.com
export DT_API_TOKEN=dt0c01. ****.**** // This token has logs.ingest permissions
./dynatrace-otel-collector --config=config.yaml

```

---

<div class="post-metadata">

**Author:** ![stephenM](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@stephenM](https://community.dynatrace.com/u/stephenM)\
**Post date:** [March 6, 2025, 4:51pm UTC](https://community.dynatrace.com/t/log-ingestion-for-file-share-not-attached-to-any-pc/47032/3 "2025-03-06T16:51:33Z")

</div>

I would like to see this moved into the Dynatrace UI as an extension.&nbsp; Should be as simple as provide full path and a credential from the cred vault.&nbsp; Assign it to a location of Activegates so the workload can be HA.
