<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Log Ingestion for File Share not attached to any PC in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Log-Ingestion-for-File-Share-not-attached-to-any-PC/m-p/252693#M1</link>
    <description>&lt;P&gt;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.&amp;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.&lt;/P&gt;&lt;P&gt;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&lt;BR /&gt;&lt;BR /&gt;any documentation or guidance will be appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 11:25:03 GMT</pubDate>
    <dc:creator>Travis2</dc:creator>
    <dc:date>2024-08-08T11:25:03Z</dc:date>
    <item>
      <title>Log Ingestion for File Share not attached to any PC</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-Ingestion-for-File-Share-not-attached-to-any-PC/m-p/252693#M1</link>
      <description>&lt;P&gt;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.&amp;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.&lt;/P&gt;&lt;P&gt;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&lt;BR /&gt;&lt;BR /&gt;any documentation or guidance will be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 11:25:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-Ingestion-for-File-Share-not-attached-to-any-PC/m-p/252693#M1</guid>
      <dc:creator>Travis2</dc:creator>
      <dc:date>2024-08-08T11:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Log Ingestion for File Share not attached to any PC</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-Ingestion-for-File-Share-not-attached-to-any-PC/m-p/252760#M2</link>
      <description>&lt;P&gt;The &lt;A href="https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/collector" target="_blank" rel="noopener"&gt;Dynatrace OpenTelemetry collector distribution&lt;/A&gt; includes two components I think may help here. The &lt;A href="https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver" target="_blank" rel="noopener"&gt;filelog receiver&lt;/A&gt; (point it at the network share?) and the &lt;A href="https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/syslogreceiver" target="_blank" rel="noopener"&gt;syslog receiver&lt;/A&gt; (if you're looking at syslog formatted data?)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;config.yaml&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="pl-ent"&gt;receivers&lt;/SPAN&gt;:
  &lt;SPAN class="pl-ent"&gt;filelog&lt;/SPAN&gt;:
    &lt;SPAN class="pl-ent"&gt;include&lt;/SPAN&gt;:
    - &lt;SPAN class="pl-s"&gt;&lt;SPAN&gt;\\dcptest01\testLogs\*.json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-s"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-ent"&gt;processors:&lt;BR /&gt;  transform/add_timestamps&lt;/SPAN&gt;:&lt;BR /&gt;&lt;SPAN class="pl-ent"&gt;    error_mode&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;ignore&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-ent"&gt;    log_statements&lt;/SPAN&gt;:&lt;BR /&gt;      - &lt;SPAN class="pl-ent"&gt;context&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;string&lt;BR /&gt;&lt;/SPAN&gt;      statements:&lt;BR /&gt;&lt;SPAN&gt;        - set(observed_time, Now())&lt;BR /&gt;        - set(time, Now())&lt;BR /&gt;exporters:&lt;BR /&gt;  otlphttp/dynatrace:&lt;BR /&gt;    endpoint: "${env:DT_ENDPOINT}/api/v2/otlp"&lt;BR /&gt;    headers:&lt;BR /&gt;      Authorization: "Api-Token ${env:DT_API_TOKEN}"&lt;BR /&gt;service:&lt;BR /&gt;  pipelines:&lt;BR /&gt;    logs:&lt;BR /&gt;      receivers: [filelog]&lt;BR /&gt;      processors: [&lt;SPAN class="pl-ent"&gt;transform/add_timestamps&lt;/SPAN&gt;]&lt;BR /&gt;      exporters: [otlphttp/dynatrace]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Then run it in any way you like (Kubernetes cluster, standalone binary on the host, docker etc.)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;// Example running as a standalone binary&lt;BR /&gt;export DT_ENDPOINT=https://abc12345.live.dynatrace.com&lt;BR /&gt;export DT_API_TOKEN=dt0c01.****.****   // This token has logs.ingest permissions&lt;BR /&gt;./dynatrace-otel-collector --config=config.yaml&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 00:55:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-Ingestion-for-File-Share-not-attached-to-any-PC/m-p/252760#M2</guid>
      <dc:creator>adam_gardner</dc:creator>
      <dc:date>2025-03-21T00:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Log Ingestion for File Share not attached to any PC</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-Ingestion-for-File-Share-not-attached-to-any-PC/m-p/271763#M1242</link>
      <description>&lt;P&gt;I would like to see this moved into the Dynatrace UI as an extension.&amp;nbsp; Should be as simple as provide full path and a credential from the cred vault.&amp;nbsp; Assign it to a location of Activegates so the workload can be HA.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 16:51:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-Ingestion-for-File-Share-not-attached-to-any-PC/m-p/271763#M1242</guid>
      <dc:creator>stephenM</dc:creator>
      <dc:date>2025-03-06T16:51:33Z</dc:date>
    </item>
  </channel>
</rss>

