<?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: Salesforce: Alerting on logs coming from API Queries in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Salesforce-Alerting-on-logs-coming-from-API-Queries/m-p/305074#M7424</link>
    <description>&lt;P&gt;I don't think the fact that the logs are coming from the Salesforce extension prevents you from alerting on them.&lt;/P&gt;&lt;P&gt;Since the API Query results are ingested as regular logs into Grail, you should be able to create a DQL-based Custom Alert in the Anomaly Detection app.&lt;/P&gt;&lt;P&gt;For example, something along these lines:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter query.name == "SF Wrapper Logs"
| filter LM_Type__c == "ERROR"
| makeTimeseries error_count = count(), interval: 1m&lt;/LI-CODE&gt;&lt;P&gt;ou can then configure the alert condition against error_count, for example when the number of matching records exceeds a threshold within the evaluation window.&lt;/P&gt;&lt;P&gt;Another option is to create a log metric for those matching records in OpenPipeline and alert on that metric. That would generally be preferable if you want to reuse the same count in dashboards or multiple alerts.&lt;/P&gt;&lt;P&gt;So you shouldn't need to re-ingest the Salesforce logs. dt.openpipeline.source == "extension:com.dynatrace.salesforce-extension" only tells you where the records originated; once they are stored in Grail, they can still be queried with DQL.&lt;/P&gt;&lt;P&gt;For your use case I'd probably start with the DQL Custom Alert, as it avoids creating an additional metric just to test the scenario.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2026 09:23:07 GMT</pubDate>
    <dc:creator>t_pawlak</dc:creator>
    <dc:date>2026-10-06T09:23:07Z</dc:date>
    <item>
      <title>Salesforce: Alerting on logs coming from API Queries</title>
      <link>https://community.dynatrace.com/t5/Extensions/Salesforce-Alerting-on-logs-coming-from-API-Queries/m-p/292928#M7001</link>
      <description>&lt;P&gt;We're using the salesforce integration, here specifically the "API Queries" piece to bridge a SOQL query and have the results arrive in DT logs.&lt;/P&gt;&lt;P&gt;This is working perfectly. 'fetch logs | filter query.name == 'SF Wrapper Logs'. Happy days.&lt;/P&gt;&lt;P&gt;What I now wish to achieve is alerting, something like "if the rate of logs with LM_Type__c == "ERROR" breaches a certain level, trigger an alert.&lt;BR /&gt;&lt;BR /&gt;And I'm failing miserably. I'm led to believe by chatbots that, because the logs are landing direct from an extension (I.E: &lt;SPAN&gt;dt.openpipeline.source == 'extension:com.dynatrace.salesforce-extension')&lt;/SPAN&gt;, nothing done in OpenPipeline or anywhere else is going to work. It talks about query based metrics, which we do not seem to have (or I can't find them), and log re-ingestion, which we also seem not to have.&lt;BR /&gt;&lt;BR /&gt;Is there not some easy way we can use to "do alert based on logging" ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 13:20:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Salesforce-Alerting-on-logs-coming-from-API-Queries/m-p/292928#M7001</guid>
      <dc:creator>magnayn</dc:creator>
      <dc:date>2026-01-13T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce: Alerting on logs coming from API Queries</title>
      <link>https://community.dynatrace.com/t5/Extensions/Salesforce-Alerting-on-logs-coming-from-API-Queries/m-p/305074#M7424</link>
      <description>&lt;P&gt;I don't think the fact that the logs are coming from the Salesforce extension prevents you from alerting on them.&lt;/P&gt;&lt;P&gt;Since the API Query results are ingested as regular logs into Grail, you should be able to create a DQL-based Custom Alert in the Anomaly Detection app.&lt;/P&gt;&lt;P&gt;For example, something along these lines:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter query.name == "SF Wrapper Logs"
| filter LM_Type__c == "ERROR"
| makeTimeseries error_count = count(), interval: 1m&lt;/LI-CODE&gt;&lt;P&gt;ou can then configure the alert condition against error_count, for example when the number of matching records exceeds a threshold within the evaluation window.&lt;/P&gt;&lt;P&gt;Another option is to create a log metric for those matching records in OpenPipeline and alert on that metric. That would generally be preferable if you want to reuse the same count in dashboards or multiple alerts.&lt;/P&gt;&lt;P&gt;So you shouldn't need to re-ingest the Salesforce logs. dt.openpipeline.source == "extension:com.dynatrace.salesforce-extension" only tells you where the records originated; once they are stored in Grail, they can still be queried with DQL.&lt;/P&gt;&lt;P&gt;For your use case I'd probably start with the DQL Custom Alert, as it avoids creating an additional metric just to test the scenario.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2026 09:23:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Salesforce-Alerting-on-logs-coming-from-API-Queries/m-p/305074#M7424</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2026-10-06T09:23:07Z</dc:date>
    </item>
  </channel>
</rss>

