<?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: Search for triggered save searches and their actions titles and users: Need help with subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-triggered-save-searches-and-their-actions-titles-and/m-p/748319#M241980</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243653"&gt;@NanSplk01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If it is only the actions field that you're interested in the subsearch, you don't need to perform all of the other operations. But since you're using splunk_server=* in the second search, here's something that might help you.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/saved/searches
| search title=kafka*
| rename dispatch.earliest_time AS "frequency", title AS "title", eai:acl.app AS "app", next_scheduled_time AS "nextRunTime", search AS "query", updated AS "lastUpdated", action.email.to AS "emailTo", action.email.cc AS "emailCC", action.email.subject AS "emailSubject", alert.severity AS "SEV"
| eval severity=case(SEV == "5", "Critical-5", SEV == "4", "High-4",SEV == "3", "Warning-3",SEV == "2", "Low-2",SEV == "1", "Info-1")
| eval identifierDate=now()
| convert ctime(identifierDate) AS identifierDate
| table identifierDate title lastUpdated, nextRunTime, emailTo, query, severity, emailTo
| fillnull value=""
| sort -lastUpdated
| join type=left title [
| rest "/servicesNS/-/-/saved/searches" timeout=300 splunk_server=*
| search disabled=0 AND title="kafka*"
| fields title actions splunk_server
| stats values(actions) as actions by title splunk_server]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps your use case.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tejas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt;If the solution works, an upvote is appreciated..!!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2025 11:35:08 GMT</pubDate>
    <dc:creator>tej57</dc:creator>
    <dc:date>2025-06-19T11:35:08Z</dc:date>
    <item>
      <title>Search for triggered save searches and their actions titles and users: Need help with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-triggered-save-searches-and-their-actions-titles-and/m-p/710620#M240008</link>
      <description>&lt;P&gt;I want to use the 2nd search as a subsearch only bringing back the actions. How can I do this?&lt;/P&gt;&lt;P&gt;SEARCH&lt;BR /&gt;| rest /servicesNS/-/-/saved/searches&lt;BR /&gt;| search title=kafka*&lt;BR /&gt;| rename dispatch.earliest_time AS "frequency", title AS "title", eai:acl.app AS "app", next_scheduled_time AS "nextRunTime", search AS "query", updated AS "lastUpdated", action.email.to AS "emailTo", action.email.cc AS "emailCC", action.email.subject AS "emailSubject", alert.severity AS "SEV"&lt;BR /&gt;| eval severity=case(SEV == "5", "Critical-5", SEV == "4", "High-4",SEV == "3", "Warning-3",SEV == "2", "Low-2",SEV == "1", "Info-1")&lt;BR /&gt;| eval identifierDate=now()&lt;BR /&gt;| convert ctime(identifierDate) AS identifierDate&lt;BR /&gt;| table identifierDate title lastUpdated, nextRunTime, emailTo, query, severity, emailTo&lt;BR /&gt;| fillnull value=""&lt;BR /&gt;| sort -lastUpdated&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SUBSEARCH&lt;BR /&gt;| rest "/servicesNS/-/-/saved/searches" timeout=300 splunk_server=*&lt;BR /&gt;| search disabled=0&lt;BR /&gt;| eval length=len(md5(title)), search_title=if(match(title,"[-\\s_]"),("RMD5" . substr(md5(title),(length - 15))),title), user='eai:acl.owner', "eai:acl.owner"=if(match(user,"[-\\s_]"),rtrim('eai:acl.owner',"="),user), app_name='eai:acl.app', "eai:acl.app"=if(match(app_name,"[-\\s_]"),rtrim('eai:acl.app',"="),app_name), commands=split(search,"|"), ol_cmd=mvindex(commands,mvfind(commands,"outputlookup")), si_cmd=mvindex(commands,mvfind(commands,"collect"))&lt;BR /&gt;| rex field=ol_cmd "outputlookup (?&amp;lt;ol_tgt_filename&amp;gt;.+)"&lt;BR /&gt;| rex field=si_cmd "index\\s?=\\s?(?&amp;lt;si_tgt_index&amp;gt;[-_\\w]+)"&lt;BR /&gt;| eval si_tgt_index=coalesce(si_tgt_index,'action.summary_index._name'), ol_tgt_filename=coalesce(ol_tgt_filename,'action.lookup.filename')&lt;BR /&gt;| rex field=description mode=sed "s/^\\s+//g"&lt;BR /&gt;| eval description_short=if(isnotnull(trim(description," ")),substr(description,0,127),""), description_short=if((len(description_short) &amp;gt; 126),(description_short . "..."),description_short), is_alert=if((((alert_comparator != "") AND (alert_threshold != "")) AND (alert_type != "always")),1,0), has_report_action=if((actions != ""),1,0)&lt;BR /&gt;| fields + app_name, description_short, user, splunk_server, title, search_title, "eai:acl.sharing", "eai:acl.owner", is_scheduled, cron_schedule, max_concurrent, dispatchAs, "dispatch.earliest_time", "dispatch.latest_time", actions, search, si_tgt_index, ol_tgt_filename, is_alert, has_report_action&lt;BR /&gt;| eval object_type=case((has_report_action == 1),"report_action",(is_alert == 1),"alert",true(),"savedsearch")&lt;BR /&gt;| where is_alert==1&lt;BR /&gt;| eval splunk_default_app = if((app_name=="splunk_archiver" OR app_name=="splunk_monitoring_console" OR app_name="splunk_instrumentation"),1,0)&lt;BR /&gt;| where splunk_default_app=0&lt;BR /&gt;| fields - splunk_server, splunk_default_app&lt;BR /&gt;| search title=*kafka*&lt;BR /&gt;| table actions title user&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 17:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-triggered-save-searches-and-their-actions-titles-and/m-p/710620#M240008</guid>
      <dc:creator>NanSplk01</dc:creator>
      <dc:date>2025-02-04T17:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search for triggered save searches and their actions titles and users: Need help with subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-triggered-save-searches-and-their-actions-titles-and/m-p/748319#M241980</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243653"&gt;@NanSplk01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If it is only the actions field that you're interested in the subsearch, you don't need to perform all of the other operations. But since you're using splunk_server=* in the second search, here's something that might help you.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/saved/searches
| search title=kafka*
| rename dispatch.earliest_time AS "frequency", title AS "title", eai:acl.app AS "app", next_scheduled_time AS "nextRunTime", search AS "query", updated AS "lastUpdated", action.email.to AS "emailTo", action.email.cc AS "emailCC", action.email.subject AS "emailSubject", alert.severity AS "SEV"
| eval severity=case(SEV == "5", "Critical-5", SEV == "4", "High-4",SEV == "3", "Warning-3",SEV == "2", "Low-2",SEV == "1", "Info-1")
| eval identifierDate=now()
| convert ctime(identifierDate) AS identifierDate
| table identifierDate title lastUpdated, nextRunTime, emailTo, query, severity, emailTo
| fillnull value=""
| sort -lastUpdated
| join type=left title [
| rest "/servicesNS/-/-/saved/searches" timeout=300 splunk_server=*
| search disabled=0 AND title="kafka*"
| fields title actions splunk_server
| stats values(actions) as actions by title splunk_server]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps your use case.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tejas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt;If the solution works, an upvote is appreciated..!!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 11:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-triggered-save-searches-and-their-actions-titles-and/m-p/748319#M241980</guid>
      <dc:creator>tej57</dc:creator>
      <dc:date>2025-06-19T11:35:08Z</dc:date>
    </item>
  </channel>
</rss>

