<?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 with Rest API to list all alerts, reports and dashoboard of a specific app in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704648#M20845</link>
    <description>&lt;P&gt;Hi Splunkers, as per thread title, I need to build one or more searches that show me, for a specific app, all alerts, reports and dashboards owned by a specific app.&lt;/P&gt;&lt;P&gt;Now, I know very well that community is full of topic with this problem and related answer. The issue is the following: no one works properly, in my cases. This because, when I run the search, If I specify the app, I got "mixed" results: I mean, I got an output composed by alerts owned app I'm searching for, but also other.&lt;/P&gt;&lt;P&gt;Let me be more specific.&lt;/P&gt;&lt;P&gt;I know that, for such kind of search, the base string is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches 
| table title&lt;/LI-CODE&gt;&lt;P&gt;Whis means: ehy, return me all saved searches for all apps on local Splunk Server (a SH, in my case).&lt;/P&gt;&lt;P&gt;So, if I execute above search, I got more or less 450 results.&lt;BR /&gt;So, what about if I need to filter? Very simple:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/&amp;lt;app name here&amp;gt;/saved/searches 
| table title&lt;/LI-CODE&gt;&lt;P&gt;That should return all and only saved searches for requested app (a custom one in my cases).&amp;nbsp;&lt;BR /&gt;Problem: app I need info has 119 saved searches (checked on GUI in related page)&lt;BR /&gt;Above query return me a total amount of 256; analyzing the output, it return me searches owned by other apps.&amp;nbsp;&lt;BR /&gt;Of course, I have already performed the obvious check, which is: am I sure that searches in output belongs to different apps and are not all for the one I'm searching for? Yes, I checked and on outpur result there are also Enterprise Security Searches, so for sure search is returning me more data than the one I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is: what can be the root cause of this behavior, if searches ownership is correct?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 14:44:59 GMT</pubDate>
    <dc:creator>SplunkExplorer</dc:creator>
    <dc:date>2024-11-18T14:44:59Z</dc:date>
    <item>
      <title>Search with Rest API to list all alerts, reports and dashoboard of a specific app</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704648#M20845</link>
      <description>&lt;P&gt;Hi Splunkers, as per thread title, I need to build one or more searches that show me, for a specific app, all alerts, reports and dashboards owned by a specific app.&lt;/P&gt;&lt;P&gt;Now, I know very well that community is full of topic with this problem and related answer. The issue is the following: no one works properly, in my cases. This because, when I run the search, If I specify the app, I got "mixed" results: I mean, I got an output composed by alerts owned app I'm searching for, but also other.&lt;/P&gt;&lt;P&gt;Let me be more specific.&lt;/P&gt;&lt;P&gt;I know that, for such kind of search, the base string is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches 
| table title&lt;/LI-CODE&gt;&lt;P&gt;Whis means: ehy, return me all saved searches for all apps on local Splunk Server (a SH, in my case).&lt;/P&gt;&lt;P&gt;So, if I execute above search, I got more or less 450 results.&lt;BR /&gt;So, what about if I need to filter? Very simple:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/&amp;lt;app name here&amp;gt;/saved/searches 
| table title&lt;/LI-CODE&gt;&lt;P&gt;That should return all and only saved searches for requested app (a custom one in my cases).&amp;nbsp;&lt;BR /&gt;Problem: app I need info has 119 saved searches (checked on GUI in related page)&lt;BR /&gt;Above query return me a total amount of 256; analyzing the output, it return me searches owned by other apps.&amp;nbsp;&lt;BR /&gt;Of course, I have already performed the obvious check, which is: am I sure that searches in output belongs to different apps and are not all for the one I'm searching for? Yes, I checked and on outpur result there are also Enterprise Security Searches, so for sure search is returning me more data than the one I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is: what can be the root cause of this behavior, if searches ownership is correct?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 14:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704648#M20845</guid>
      <dc:creator>SplunkExplorer</dc:creator>
      <dc:date>2024-11-18T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search with Rest API to list all alerts, reports and dashoboard of a specific app</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704653#M20847</link>
      <description>&lt;P&gt;Not sure why your example is not working with the reduced list you expect, I get similar results from what you try plus here is an alternate for you to try.&lt;/P&gt;&lt;PRE&gt;| rest splunk_server=local /servicesNS/-/search/saved/searches&lt;BR /&gt;| rest splunk_server=local /servicesNS/-/-/configs/conf-savedsearches search="eai:acl.app=search"&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Nov 2024 16:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704653#M20847</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2024-11-18T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Search with Rest API to list all alerts, reports and dashoboard of a specific app</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704672#M20848</link>
      <description>Hi&lt;BR /&gt;On GUI there are separate tabs for alerts and reports, but when you are querying those with rest, then you got those both at the same time.&lt;BR /&gt;Here is old post which tell how you could try to identify which is alert and which is report. &lt;A href="https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-export-all-alerts-to-csv-or-pdf/m-p/629226#M9319" target="_blank"&gt;https://community.splunk.com/t5/Monitoring-Splunk/How-do-I-export-all-alerts-to-csv-or-pdf/m-p/629226#M9319&lt;/A&gt;&lt;BR /&gt;r. Ismo</description>
      <pubDate>Mon, 18 Nov 2024 18:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704672#M20848</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-11-18T18:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search with Rest API to list all alerts, reports and dashoboard of a specific app</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704700#M20851</link>
      <description>&lt;P&gt;Ok, for the first time I don't know which answer should I label as solution XD&lt;/P&gt;&lt;P&gt;That because both&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/194981"&gt;@dural_yyz&lt;/a&gt;&amp;nbsp;hints helped me to build the final searche.&lt;BR /&gt;Final result is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/configs/conf-savedsearches search="eai:acl.app=&amp;lt;app name here&amp;gt;" 
| rename "alert.track" as alert_track 
| eval type=case(alert_track=1, "alert", 
    (isnotnull(actions) AND actions!="") AND (isnotnull(alert_threshold) AND alert_threshold!=""), "alert", 
    (isnotnull(alert_comparator) AND alert_comparator!="") AND (isnotnull(alert_type) AND alert_type!="always"), "alert", 
    true(), "report") 
| table title, type&lt;/LI-CODE&gt;&lt;P&gt;With this, I can get a table with searches title and its typology, I mean alert or report.&lt;/P&gt;&lt;P&gt;Thanks to both!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 08:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Search-with-Rest-API-to-list-all-alerts-reports-and-dashoboard/m-p/704700#M20851</guid>
      <dc:creator>SplunkExplorer</dc:creator>
      <dc:date>2024-11-19T08:53:18Z</dc:date>
    </item>
  </channel>
</rss>

