<?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: Correlate two results logs in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Correlate-two-results-logs/m-p/239951#M733</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter ((matchesValue(k8s.container.name, "cart") and matchesPhrase(content, "submitOrder - end") and matchesValue(status, "INFO") and isNotNull(customerid)))
| lookup [fetch logs
| filter ((matchesValue(k8s.container.name, "cart") and matchesValue(status, "ERROR") and matchesPhrase(content, "submitOrder") and isNotNull(customerid)))
], sourceField:customerid, lookupField:customerid&lt;/LI-CODE&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 18:06:08 GMT</pubDate>
    <dc:creator>dannemca</dc:creator>
    <dc:date>2024-03-14T18:06:08Z</dc:date>
    <item>
      <title>Correlate two results logs</title>
      <link>https://community.dynatrace.com/t5/DQL/Correlate-two-results-logs/m-p/239926#M732</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a use case that I need help with.&lt;/P&gt;&lt;P&gt;I need to list the customers who made a purchase, but informing whether there was an error in the journey or not.&lt;/P&gt;&lt;P&gt;I use the following query to find all purchases made:&lt;/P&gt;&lt;P&gt;fetch logs&lt;BR /&gt;| filter ((matchesValue(k8s.container.name, "cart") and matchesPhrase(content, "submitOrder - end") and matchesValue(status, "INFO") and isNotNull(customerid)))&lt;/P&gt;&lt;P&gt;and I use the following query to find all errors during the purchase:&lt;/P&gt;&lt;P&gt;fetch logs&lt;BR /&gt;| filter ((matchesValue(k8s.container.name, "cart") and matchesValue(status, "ERROR") and matchesPhrase(content, "submitOrder") and isNotNull(customerid)))&lt;/P&gt;&lt;P&gt;How can I add the second information to the first using the customerid? Should I use lookup or enjoy?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 13:36:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Correlate-two-results-logs/m-p/239926#M732</guid>
      <dc:creator>wellpplava</dc:creator>
      <dc:date>2024-03-14T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate two results logs</title>
      <link>https://community.dynatrace.com/t5/DQL/Correlate-two-results-logs/m-p/239951#M733</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter ((matchesValue(k8s.container.name, "cart") and matchesPhrase(content, "submitOrder - end") and matchesValue(status, "INFO") and isNotNull(customerid)))
| lookup [fetch logs
| filter ((matchesValue(k8s.container.name, "cart") and matchesValue(status, "ERROR") and matchesPhrase(content, "submitOrder") and isNotNull(customerid)))
], sourceField:customerid, lookupField:customerid&lt;/LI-CODE&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 18:06:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Correlate-two-results-logs/m-p/239951#M733</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-03-14T18:06:08Z</dc:date>
    </item>
  </channel>
</rss>

