<?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: How to get ID of splunkd process executing saved search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ID-of-splunkd-process-executing-saved-search/m-p/688943#M234822</link>
    <description>&lt;P&gt;If you already know the search ID, it shouldn't matter whether it is saved search or not.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/search/jobs/&amp;lt;search ID&amp;gt;
| fields sid pid&lt;/LI-CODE&gt;&lt;P&gt;Here, pid is the process ID. &amp;nbsp;There are tons of other output from this call.&lt;/P&gt;&lt;P&gt;If you only know the saved search's name, you can search by label&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/search/jobs
| where isSavedSearch == 1 AND label = "&amp;lt;your report name&amp;gt;"
| fields label sid pid&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 04:15:01 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2024-05-29T04:15:01Z</dc:date>
    <item>
      <title>How to get ID of splunkd process executing saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ID-of-splunkd-process-executing-saved-search/m-p/688893#M234814</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm trying to resolve issues with splunkd being killed by OOM Reaper and it would be nice to know which saved search (or ad-hoc search) is consuming too much RAM. In Linux messages from Search Head I have a PIDs of reaped splunkd processes and the question is how to get PID of splunkd for particular saved search from _internal index. Scheduler events have SID field like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sid&lt;/SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;scheduler_aS5zLnNva29sb3Y_czdfc2llbV9uZXR3b3Jr__RMD58313482a27867d57_at_1716903900_27923&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is the last part of SID (27923) a Linux process ID? Or maybe I can get PID from some other source?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 14:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ID-of-splunkd-process-executing-saved-search/m-p/688893#M234814</guid>
      <dc:creator>YuriSpirin</dc:creator>
      <dc:date>2024-05-28T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ID of splunkd process executing saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ID-of-splunkd-process-executing-saved-search/m-p/688943#M234822</link>
      <description>&lt;P&gt;If you already know the search ID, it shouldn't matter whether it is saved search or not.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/search/jobs/&amp;lt;search ID&amp;gt;
| fields sid pid&lt;/LI-CODE&gt;&lt;P&gt;Here, pid is the process ID. &amp;nbsp;There are tons of other output from this call.&lt;/P&gt;&lt;P&gt;If you only know the saved search's name, you can search by label&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/search/jobs
| where isSavedSearch == 1 AND label = "&amp;lt;your report name&amp;gt;"
| fields label sid pid&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 04:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ID-of-splunkd-process-executing-saved-search/m-p/688943#M234822</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-05-29T04:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ID of splunkd process executing saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ID-of-splunkd-process-executing-saved-search/m-p/689184#M234874</link>
      <description>&lt;P&gt;Thanks, that was helpful!&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ID-of-splunkd-process-executing-saved-search/m-p/689184#M234874</guid>
      <dc:creator>YuriSpirin</dc:creator>
      <dc:date>2024-05-31T09:55:04Z</dc:date>
    </item>
  </channel>
</rss>

