<?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 Adding K8s labels to log lines in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Adding-K8s-labels-to-log-lines/m-p/232433#M436</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a use case in which we want to add the value of a specific k8s workload label to the log lines of the relevant pods. My questions is actually very simple: on which grail "table" is it stored?&lt;/P&gt;&lt;P&gt;Gil.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 06:57:53 GMT</pubDate>
    <dc:creator>gilgi</dc:creator>
    <dc:date>2023-12-20T06:57:53Z</dc:date>
    <item>
      <title>Adding K8s labels to log lines</title>
      <link>https://community.dynatrace.com/t5/DQL/Adding-K8s-labels-to-log-lines/m-p/232433#M436</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a use case in which we want to add the value of a specific k8s workload label to the log lines of the relevant pods. My questions is actually very simple: on which grail "table" is it stored?&lt;/P&gt;&lt;P&gt;Gil.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 06:57:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Adding-K8s-labels-to-log-lines/m-p/232433#M436</guid>
      <dc:creator>gilgi</dc:creator>
      <dc:date>2023-12-20T06:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding K8s labels to log lines</title>
      <link>https://community.dynatrace.com/t5/DQL/Adding-K8s-labels-to-log-lines/m-p/232471#M438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/12008"&gt;@gilgi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Workloads are within &lt;EM&gt;dt.entity.cloud_application&lt;/EM&gt;, and pods are stored in &lt;EM&gt;dt.entity.cloud_application_instance&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Reflecting part of the URL when you're in a workload and a pod.&lt;/P&gt;&lt;P&gt;This DQL I am looking for a specific label from the Workload "control-plane"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.cloud_application_instance
|fields entity.name,id,workloadName
| lookup sourceField:workloadName, lookupField:entity.name, [fetch dt.entity.cloud_application
| expand cloudApplicationLabels[`control-plane`], alias:controlPlane]
| filter isNotNull(lookup.controlPlane)&lt;/LI-CODE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 11:46:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Adding-K8s-labels-to-log-lines/m-p/232471#M438</guid>
      <dc:creator>LawrenceBarratt</dc:creator>
      <dc:date>2023-12-20T11:46:40Z</dc:date>
    </item>
  </channel>
</rss>

