<?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: Where or into which System Index  - Does Splunk write logs about Orphaned Searches in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Where-or-into-which-System-Index-Does-Splunk-write-logs-about/m-p/353317#M6195</link>
    <description>&lt;P&gt;Within the &lt;A href="https://splunkbase.splunk.com/app/3796/"&gt;Alerts For Splunk Admins application&lt;/A&gt; I wrote a search called "SearchHeadLevel - LDAP users have been disabled or left the company cleanup required"&lt;/P&gt;

&lt;P&gt;If you just want the one search refer to the &lt;A href="https://github.com/gjanders/SplunkAdmins/blob/master/default/savedsearches.conf"&gt;savedsearches.conf in github&lt;/A&gt; , however there is no exact way I know of beyond the REST API of doing this, the search "SearchHeadLevel - LDAP users have been disabled or left the company cleanup required" works for my environment...&lt;/P&gt;

&lt;P&gt;Here's the main part of the search, it's a bit complicated, I've stripped the comments in case you don't have that macro available:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=&amp;lt;yoursearchheadhosts&amp;gt; "Failed to get LDAP user=\"" OR "Couldn't find matching groups for user=" OR "HTTPAuthManager - SSO failed - User does not exist" sourcetype=splunkd source=*splunkd.log
| dedup message 
| rex "SSO failed - User does not exist: (?P&amp;lt;user&amp;gt;\S+)"
| stats count, values(message) AS messages, values(component), AS components values(log_level), max(_time) AS lastSeen by user, host
| where user!="undefined" AND user!="nobody" AND like(messages,"Failed to get LDAP user%") AND NOT like(messages,"SSO failed - User does not exist%")
| table user, messages, lastSeen, host
| eval lastSeen=strftime(lastSeen, "%+")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Mar 2018 08:19:57 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2018-03-16T08:19:57Z</dc:date>
    <item>
      <title>Where or into which System Index  - Does Splunk write logs about Orphaned Searches</title>
      <link>https://community.splunk.com/t5/Reporting/Where-or-into-which-System-Index-Does-Splunk-write-logs-about/m-p/353315#M6193</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;I would like to know into which system internal index, Source -  does Splunk write logs about Orphaned Searches.&lt;/P&gt;

&lt;P&gt;I know there is a Rest API Search which can show all Orphaned Searches but I would like to see this data in Internal Indexes as I am creating Some KPI's on it.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 17:50:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Where-or-into-which-System-Index-Does-Splunk-write-logs-about/m-p/353315#M6193</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-03-14T17:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Where or into which System Index  - Does Splunk write logs about Orphaned Searches</title>
      <link>https://community.splunk.com/t5/Reporting/Where-or-into-which-System-Index-Does-Splunk-write-logs-about/m-p/353316#M6194</link>
      <description>&lt;P&gt;I don't think Splunk keeps that info in Internal Indexes. You can still create your KPIs on that matter by using the command | rest and gather the data you need.&lt;/P&gt;

&lt;P&gt;Why do you need the data to come from the indexers if you can still access it in SPL by | rest ?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Where-or-into-which-System-Index-Does-Splunk-write-logs-about/m-p/353316#M6194</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-14T19:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Where or into which System Index  - Does Splunk write logs about Orphaned Searches</title>
      <link>https://community.splunk.com/t5/Reporting/Where-or-into-which-System-Index-Does-Splunk-write-logs-about/m-p/353317#M6195</link>
      <description>&lt;P&gt;Within the &lt;A href="https://splunkbase.splunk.com/app/3796/"&gt;Alerts For Splunk Admins application&lt;/A&gt; I wrote a search called "SearchHeadLevel - LDAP users have been disabled or left the company cleanup required"&lt;/P&gt;

&lt;P&gt;If you just want the one search refer to the &lt;A href="https://github.com/gjanders/SplunkAdmins/blob/master/default/savedsearches.conf"&gt;savedsearches.conf in github&lt;/A&gt; , however there is no exact way I know of beyond the REST API of doing this, the search "SearchHeadLevel - LDAP users have been disabled or left the company cleanup required" works for my environment...&lt;/P&gt;

&lt;P&gt;Here's the main part of the search, it's a bit complicated, I've stripped the comments in case you don't have that macro available:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=&amp;lt;yoursearchheadhosts&amp;gt; "Failed to get LDAP user=\"" OR "Couldn't find matching groups for user=" OR "HTTPAuthManager - SSO failed - User does not exist" sourcetype=splunkd source=*splunkd.log
| dedup message 
| rex "SSO failed - User does not exist: (?P&amp;lt;user&amp;gt;\S+)"
| stats count, values(message) AS messages, values(component), AS components values(log_level), max(_time) AS lastSeen by user, host
| where user!="undefined" AND user!="nobody" AND like(messages,"Failed to get LDAP user%") AND NOT like(messages,"SSO failed - User does not exist%")
| table user, messages, lastSeen, host
| eval lastSeen=strftime(lastSeen, "%+")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 08:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Where-or-into-which-System-Index-Does-Splunk-write-logs-about/m-p/353317#M6195</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-03-16T08:19:57Z</dc:date>
    </item>
  </channel>
</rss>

