<?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 Search help please in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559673#M10640</link>
    <description>&lt;P&gt;Hello!&amp;nbsp; I'm trying to set an alert that let's me know if tasks in a specific queue pass a specific duration.&amp;nbsp; The search has been giving me issues.&amp;nbsp; I tried a transaction line, but I don't have a endswith.&amp;nbsp; Does anyone know how to run a search like this?&lt;/P&gt;&lt;P&gt;I'm trying something like:&lt;/P&gt;&lt;P&gt;earliest=-30d@d index=[DATA] sourcetype=incident_history incident_type=[SPECIFIC QUEUE] event_type=[SPECIFIC ACTION (LIKE A TASK ON HOLD)]&lt;BR /&gt;| transaction incident_id when startswith=[SPECIFIC ACTION (LIKE A TASK ON HOLD)] endswith= &amp;gt; 72h&lt;BR /&gt;| table incident_id, duration&lt;BR /&gt;| sort - duration&lt;/P&gt;&lt;P&gt;It's not a transaction, but the only thing I could thing of.&amp;nbsp; What would be a search command forwhen an incident_id has been in a specific queue past a specific duration?&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 19:02:43 GMT</pubDate>
    <dc:creator>csatech245</dc:creator>
    <dc:date>2021-07-15T19:02:43Z</dc:date>
    <item>
      <title>Search help please</title>
      <link>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559673#M10640</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; I'm trying to set an alert that let's me know if tasks in a specific queue pass a specific duration.&amp;nbsp; The search has been giving me issues.&amp;nbsp; I tried a transaction line, but I don't have a endswith.&amp;nbsp; Does anyone know how to run a search like this?&lt;/P&gt;&lt;P&gt;I'm trying something like:&lt;/P&gt;&lt;P&gt;earliest=-30d@d index=[DATA] sourcetype=incident_history incident_type=[SPECIFIC QUEUE] event_type=[SPECIFIC ACTION (LIKE A TASK ON HOLD)]&lt;BR /&gt;| transaction incident_id when startswith=[SPECIFIC ACTION (LIKE A TASK ON HOLD)] endswith= &amp;gt; 72h&lt;BR /&gt;| table incident_id, duration&lt;BR /&gt;| sort - duration&lt;/P&gt;&lt;P&gt;It's not a transaction, but the only thing I could thing of.&amp;nbsp; What would be a search command forwhen an incident_id has been in a specific queue past a specific duration?&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559673#M10640</guid>
      <dc:creator>csatech245</dc:creator>
      <dc:date>2021-07-15T19:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search help please</title>
      <link>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559689#M10641</link>
      <description>&lt;P&gt;Can you share some sample anonymised events? Also, detailing which fields you already have extracted?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 20:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559689#M10641</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-15T20:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search help please</title>
      <link>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559715#M10642</link>
      <description>&lt;P&gt;I apologize, I'm not sure what you're asking for.&amp;nbsp; Thank you for reaching out to a Splunk noob and offering assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 21:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559715#M10642</guid>
      <dc:creator>csatech245</dc:creator>
      <dc:date>2021-07-15T21:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search help please</title>
      <link>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559723#M10643</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236463"&gt;@csatech245&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This first query gives you the duration_in_seconds&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;earliest=-30d@d latest=now index=[DATA] sourcetype=incident_history incident_type=[SPECIFIC QUEUE] event_type=[SPECIFIC ACTION (LIKE A TASK ON HOLD)]
| stats range(_time) as duration_in_seconds by incident_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;second query which provides all queues and respective time for each incident_id. Assumed your incident_type is having your queue details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;earliest=-30d@d latest=now index=[DATA] sourcetype=incident_history  event_type=[SPECIFIC ACTION (LIKE A TASK ON HOLD)]
| stats range(_time) as duration_in_seconds by incident_id, incident_type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 00:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559723#M10643</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-16T00:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Search help please</title>
      <link>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559800#M10645</link>
      <description>&lt;P&gt;Thank you very much!&amp;nbsp; Your second example works perfect for every incident_id of all queues... this is even better.&amp;nbsp; I appreciate your help!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 12:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Search-help-please/m-p/559800#M10645</guid>
      <dc:creator>csatech245</dc:creator>
      <dc:date>2021-07-16T12:49:35Z</dc:date>
    </item>
  </channel>
</rss>

