<?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 Correlate two log sources in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236146#M607</link>
    <description>&lt;P&gt;Guys, would this be possible?&lt;/P&gt;&lt;P&gt;When a user registers on our website or app, a log line with their ID is generated. We were able to find out whether it was through the website or app because of the service that generated the log.&lt;/P&gt;&lt;P&gt;If the registration is successful, a new log line is generated with the ID, but we cannot know whether it came from the website or the APP.&lt;/P&gt;&lt;P&gt;Would it be possible to use the ID to correlate the two log lines and count how many registrations were made successfully through the SITE and APP and store it in a metric?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 13:06:03 GMT</pubDate>
    <dc:creator>wellpplava</dc:creator>
    <dc:date>2024-02-02T13:06:03Z</dc:date>
    <item>
      <title>Correlate two log sources</title>
      <link>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236146#M607</link>
      <description>&lt;P&gt;Guys, would this be possible?&lt;/P&gt;&lt;P&gt;When a user registers on our website or app, a log line with their ID is generated. We were able to find out whether it was through the website or app because of the service that generated the log.&lt;/P&gt;&lt;P&gt;If the registration is successful, a new log line is generated with the ID, but we cannot know whether it came from the website or the APP.&lt;/P&gt;&lt;P&gt;Would it be possible to use the ID to correlate the two log lines and count how many registrations were made successfully through the SITE and APP and store it in a metric?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:06:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236146#M607</guid>
      <dc:creator>wellpplava</dc:creator>
      <dc:date>2024-02-02T13:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate two log sources</title>
      <link>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236148#M608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/69551"&gt;@wellpplava&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes this is possible. I will try to mock the DQL for that use case&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch logs
| filter log.source == "&amp;lt;source hp" or log.source == "&amp;lt;source2&amp;gt;"
// either you extract the id in the processing pipeline or on read
// I will assume that you do it in the processing pipeline and have it available in the field id
| summarize takeAny(log.source), by: { id }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you extract the ID on read, then please share an example log line from both log sources.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Sini&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 13:16:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236148#M608</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-02-02T13:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate two log sources</title>
      <link>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236154#M609</link>
      <description>&lt;P&gt;I identify whether it is a website or an app through this filter and this line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;matchesPhrase(content, "preRegisterCustomer - Starting pre-register customer") and matchesValue(dt.entity.cloud_application, "CLOUD_APPLICATION-YYY")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;"message": "preRegisterCustomer - Starting pre-register customer ID_NUMBER""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I identify whether it is a website or an app through this filter and this line:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;matchesPhrase(content, "setFinalReturnCustomerState") AND matchesValue(dt.entity.cloud_application, "CLOUD_APPLICATION-XXXX")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt; "message": "setFinalReturnCustomerState - Customer ID_NUMBER is Active",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Can I have this information in a metric? Maybe creating two metrics? Or a single metric with dimensions?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 14:07:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236154#M609</guid>
      <dc:creator>wellpplava</dc:creator>
      <dc:date>2024-02-02T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate two log sources</title>
      <link>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236281#M613</link>
      <description>&lt;P&gt;you can do both, capture that info in one metric or a single one with dimensions. for that you don't really need DQL. it is just a configuration of (1) log processing rules and (2)&amp;nbsp;Log metrics&lt;SPAN&gt;&amp;nbsp;extraction.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Go to settings -&amp;gt; Log for configuring processing and log metric extraction&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 13:15:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/236281#M613</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-02-05T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Correlate two log sources</title>
      <link>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/237798#M667</link>
      <description>&lt;P&gt;How about Log traces extraction? Can we create span/traces via settings?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 01:21:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Correlate-two-log-sources/m-p/237798#M667</guid>
      <dc:creator>rudy_h</dc:creator>
      <dc:date>2024-02-22T01:21:53Z</dc:date>
    </item>
  </channel>
</rss>

