<?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 Re: dynatrace_ingest for logs? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302062#M39275</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/19639"&gt;@dylan_taelemans&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Yes, I know I can do it with curl, as I posted initially in the thread.&lt;BR /&gt;The question is if dynatrace_ingest could do it.&lt;/P&gt;&lt;P&gt;BTW, the reservation against curl is a security one: they don't want it to be used...&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2026 11:09:36 GMT</pubDate>
    <dc:creator>AntonioSousa</dc:creator>
    <dc:date>2026-07-17T11:09:36Z</dc:date>
    <item>
      <title>dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302004#M39266</link>
      <description>&lt;P&gt;dynatrace_ingest can ingest metrics locally. But if we want to ingest logs locally, suggested way is with a curl command.&lt;BR /&gt;Is there a way to pipe output from a Linux/Windows command, through dynatrace_ingest, or something similar?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 07:09:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302004#M39266</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2026-07-17T07:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302013#M39267</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have OneAgent, you can ingest custom logs base on tomcus&lt;SPAN&gt;&amp;nbsp;log course and ingestion rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2026 12:55:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302013#M39267</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2026-07-16T12:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302027#M39268</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/58682"&gt;@AntonPineiro&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The idea is to not have log files in the first place, so I don't have to write to disk. Something like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;./my_program -v | dynatrace_ingest&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 16 Jul 2026 18:49:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302027#M39268</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2026-07-16T18:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302033#M39269</link>
      <description>&lt;P&gt;You mean ingest logs from local to SaaS cluster?&lt;BR /&gt;For this use case, you would use the log ingest API and curl, or powershell.&lt;BR /&gt;You first need to create an API log.ingest token and then run somthing like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tail -f /var/log/syslog | while read line; do
curl -X POST "http://&amp;lt;tenantFQDN&amp;gt;/v2/logs/ingest" \
-H "Content-Type: application/json" \
-H "Authorization: Api-Token &amp;lt;your-token&amp;gt;" \
-d "{\"content\": \"$line\"}"
done&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;In this blog, OTel was used to ingest logs extracted from a local json file on a raspberry pi:&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/news/blog/leverage-edge-iot-data-with-opentelemetry-and-dynatrace/" target="_blank"&gt;Leverage edge IoT data with OpenTelemetry and Dynatrace&lt;/A&gt;&lt;BR /&gt;Details are explained in Step 5.&lt;BR /&gt;&lt;BR /&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2026 22:19:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302033#M39269</guid>
      <dc:creator>JustSchwendi</dc:creator>
      <dc:date>2026-07-16T22:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302042#M39271</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I understand your point now. I am not aware that is possible.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 06:55:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302042#M39271</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2026-07-17T06:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302054#M39273</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75414"&gt;@JustSchwendi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As said below, the idea is to not have log files at all.&amp;nbsp;nd also not having tokens and other configurations. If you ingest locally, you don't need it:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-logs/oneagent-log-ingest-api" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-logs/oneagent-log-ingest-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My idea was just using something like dynatrace_ingest (&lt;A href="https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/ingestion-methods/oneagent-pipe" target="_self"&gt;link&lt;/A&gt;) to ingest locally without any other configuration. But it doesn't seem to exist, so creating a Product Idea:&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Ideas/dynatrace-ingest-for-logs/idi-p/302055" target="_blank"&gt;https://community.dynatrace.com/t5/Ideas/dynatrace-ingest-for-logs/idi-p/302055&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, loved the blog post; hadn't seen it before.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 08:13:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302054#M39273</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2026-07-17T08:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302057#M39274</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I believe this can be done without a token or additional configuration by using the OneAgent localhost API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/oneagent-log-ingest-api" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/oneagent-log-ingest-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So it would be similar to the solution proposed by &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75414"&gt;@JustSchwendi&lt;/a&gt;&amp;nbsp;, but using the localhost endpoint instead. This removes the need for:&lt;/P&gt;&lt;PRE&gt;-H "Authorization: Api-Token &amp;lt;your-token&amp;gt;"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;It is not as straightforward to use as &lt;/SPAN&gt;&lt;SPAN&gt;dynatrace_ingest&lt;/SPAN&gt;&lt;SPAN&gt;, but it could be a valid alternative depending on the use case and requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The idea would be to pipe the output of your commands to &lt;/SPAN&gt;&lt;SPAN&gt;curl&lt;/SPAN&gt;&lt;SPAN&gt;, which then forwards the data to the local OneAgent endpoint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example using &lt;/SPAN&gt;&lt;SPAN&gt;ls&lt;/SPAN&gt;&lt;SPAN&gt; just to keep it simple:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ls | jq -Rs '{content: .}' | curl \
-H "Content-Type: application/json" \
-X POST \
-d @- \
http://localhost:14499/v2/logs/ingest&lt;/LI-CODE&gt;&lt;P&gt;Note: the jq -Rs '{content: .}' part is only used to convert the output lines into the required JSON format.&lt;/P&gt;&lt;P&gt;If your script (./my_program) could already output the data in the expected JSON format, for example:&lt;/P&gt;&lt;PRE&gt;{"content": "YOUR_CONTENT"}&lt;/PRE&gt;&lt;P&gt;then jq would no longer be needed.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 09:05:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302057#M39274</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-07-17T09:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302062#M39275</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/19639"&gt;@dylan_taelemans&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Yes, I know I can do it with curl, as I posted initially in the thread.&lt;BR /&gt;The question is if dynatrace_ingest could do it.&lt;/P&gt;&lt;P&gt;BTW, the reservation against curl is a security one: they don't want it to be used...&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 11:09:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302062#M39275</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2026-07-17T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302064#M39276</link>
      <description>&lt;P&gt;Afaik dynatrace_ingest does it by HTTP POST anyway.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 11:15:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302064#M39276</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-07-17T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302065#M39277</link>
      <description>&lt;P&gt;Okay, I focused on your reply to &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75414"&gt;@JustSchwendi&lt;/a&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;==&amp;gt; As said below, the idea is to not have log files at all. nd also not having tokens and other configurations.&lt;/BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Therefore, I proposed a solution that does not require log files, tokens, or any additional configuration.&lt;/P&gt;&lt;P&gt;I don't think there is another way to achieve this, so the Product Idea is indeed the only remaining option.&lt;/P&gt;&lt;P&gt;Regarding the concern about curl being a security issue: I believe the script behind the dynatrace_ingest tool uses curl as well, or at least something with the same functionality. However, this should probably be validated/confirmed to be sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 11:21:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302065#M39277</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-07-17T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: dynatrace_ingest for logs?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302069#M39278</link>
      <description>&lt;P&gt;There are many options how to do a&amp;nbsp;HTTP POST locally on http port. You can use printf + netcat or even bash redirection (if enabled).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Curious what security issue does curl pose?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 13:22:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/dynatrace-ingest-for-logs/m-p/302069#M39278</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2026-07-17T13:22:59Z</dc:date>
    </item>
  </channel>
</rss>

