<?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: Matching dissimilar field titles with a Subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374706#M110129</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_audit action="search" search="*" NOT user="splunk-system-user" savedsearch_name="" NOT search="\'|history*" NOT search="\'typeahead*"  user!=NULL user!=admin search_id!="\'subsearch*" |bucket _time span=day |stats count by user  | sort 10 -count
| join user type=left [ |rest /servicesNS/-/-/authentication/users splunk_server=local|search NOT title=admin|table title,realname,type,email | rename title as user]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Jun 2017 19:18:29 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-06-29T19:18:29Z</dc:date>
    <item>
      <title>Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374702#M110125</link>
      <description>&lt;P&gt;Background is that I'm trying to pull in LDAP full names in from one search, and match that to UID from another search.&lt;/P&gt;

&lt;P&gt;My LDAP full name query is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /servicesNS/-/-/authentication/users splunk_server=local|search NOT title=admin|fields title,realname,type,email
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The "matching" field here is "title", and the value I want is "realname"&lt;/P&gt;

&lt;P&gt;My other search grabs the top 10 search users for the past 7 days:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="search" search="*" NOT user="splunk-system-user" savedsearch_name="" NOT search="\'|history*" NOT search="\'typeahead*"  user!=NULL user!=admin search_id!="\'subsearch*" |bucket _time span=day |stats count by user | table user count|head 10 | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The field that returns from this is "user".  So what I need is to take the value of "user", match it to previous search's "title", and spit out "realname" so I can sub that in for "user"&lt;/P&gt;

&lt;P&gt;I can't find any good information on my exact scenario&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374702#M110125</guid>
      <dc:creator>sheltomt</dc:creator>
      <dc:date>2017-06-29T18:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374703#M110126</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="search" search="*" NOT user="splunk-system-user" savedsearch_name="" NOT search="\'|history*" NOT search="\'typeahead*" user!=NULL user!=admin search_id!="\'subsearch*"
|bucket _time span=day
|stats count by user
| table user count
|head 10
| sort -count
| appendpipe [|rest /servicesNS/-/-/authentication/users splunk_server=local
   |search NOT title=admin|fields title realname type email
   | rename title AS user
   | eval DROPME="true"]
| evenstats values(realname) AS realname BY user
| where isnotnull(DROPME)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:54:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374703#M110126</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-29T18:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374704#M110127</link>
      <description>&lt;P&gt;So looking over your solution, I see where I was going wrong on the subsearch.&lt;/P&gt;

&lt;P&gt;However, your solution appears to only return values of the subsearch.  There is no count from the outer search&lt;/P&gt;

&lt;P&gt;I'm trying to get an output of strictly realname and then a count field for how many searches they've done&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374704#M110127</guid>
      <dc:creator>sheltomt</dc:creator>
      <dc:date>2017-06-29T19:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374705#M110128</link>
      <description>&lt;P&gt;I only see &lt;CODE&gt;subsearch&lt;/CODE&gt; in your subject line.  Which is the search and which is the subsearch?  Show the combined search and maybe that will help.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374705#M110128</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-29T19:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374706#M110129</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_audit action="search" search="*" NOT user="splunk-system-user" savedsearch_name="" NOT search="\'|history*" NOT search="\'typeahead*"  user!=NULL user!=admin search_id!="\'subsearch*" |bucket _time span=day |stats count by user  | sort 10 -count
| join user type=left [ |rest /servicesNS/-/-/authentication/users splunk_server=local|search NOT title=admin|table title,realname,type,email | rename title as user]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374706#M110129</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-29T19:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374707#M110130</link>
      <description>&lt;P&gt;Ahh, got yours to work much better with last line being "where isnull(DROPME)"&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374707#M110130</guid>
      <dc:creator>sheltomt</dc:creator>
      <dc:date>2017-06-29T19:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374708#M110131</link>
      <description>&lt;P&gt;I have no idea which of you to award solution to.  They both work well, and I'll use them in future solutions.  I'll give you both points.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374708#M110131</guid>
      <dc:creator>sheltomt</dc:creator>
      <dc:date>2017-06-29T19:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Matching dissimilar field titles with a Subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374709#M110132</link>
      <description>&lt;P&gt;So I was dropping the wrong set.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-dissimilar-field-titles-with-a-Subsearch/m-p/374709#M110132</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-29T19:31:06Z</dc:date>
    </item>
  </channel>
</rss>

