<?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 develop a lookup search to run a stats count by user and return other fields in the output? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228404#M67521</link>
    <description>&lt;P&gt;Can you share sample from lookup file including the header and also from the log data couple or _raw events?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 19:05:36 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2016-11-14T19:05:36Z</dc:date>
    <item>
      <title>How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228397#M67514</link>
      <description>&lt;P&gt;I have a lookup table that has five fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;User    
Account Type    
Employee RC 
Employee Department 
Student RC
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have an index I'd like to run the lookup command against that has a field with the same name - User&lt;/P&gt;

&lt;P&gt;How do I set up my lookup command to do a stats count by User and return the other four fields in the output?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 17:55:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228397#M67514</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-14T17:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228398#M67515</link>
      <description>&lt;P&gt;Perhaps this will help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo | stats count as Count by User | lookup mylookup User OUTPUT "Account Type" "Employee RC" "Employee Department" "Student RC" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Nov 2016 18:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228398#M67515</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-14T18:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228399#M67516</link>
      <description>&lt;P&gt;Assuming your lookup table has lookup defined as &lt;STRONG&gt;userdetails&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | stats count by User | lookup userdetails User | table User, "Account Type", "Employee RC", "Employee Department", "Student RC"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It would be better if your lookup table had fields without spaces like Employee_RC etc&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 18:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228399#M67516</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-14T18:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228400#M67517</link>
      <description>&lt;P&gt;Thx for the repkly Rich.&lt;/P&gt;

&lt;P&gt;I ran that query and I'm seeing the count by User, but the other fields ("Account Type" "Employee RC" "Employee Department" "Student RC") are blank&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 18:35:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228400#M67517</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-14T18:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228401#M67518</link>
      <description>&lt;P&gt;FYI - as a test, I did a |inputlookup ldap and I'm seeing values in the fields&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 18:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228401#M67518</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-14T18:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228402#M67519</link>
      <description>&lt;P&gt;Thx - I added the underline to the other fields, but still not seeing any values returned&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 18:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228402#M67519</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-14T18:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228403#M67520</link>
      <description>&lt;P&gt;So is your problem resolved?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 19:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228403#M67520</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-14T19:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228404#M67521</link>
      <description>&lt;P&gt;Can you share sample from lookup file including the header and also from the log data couple or _raw events?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 19:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228404#M67521</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-14T19:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228405#M67522</link>
      <description>&lt;P&gt;Make sure the casing of field User is the same in raw data and the lookup table. If the fields are not exact match they will not join.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 19:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228405#M67522</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-14T19:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228406#M67523</link>
      <description>&lt;P&gt;The field in the index is 'User' and the field in the .csv is 'User' - I did double check that to make sure they matched up&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 19:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228406#M67523</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-14T19:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228407#M67524</link>
      <description>&lt;P&gt;No - still not seeing values in any of other four fields&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 19:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228407#M67524</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-14T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228408#M67525</link>
      <description>&lt;P&gt;Some sample data from the csv:&lt;/P&gt;

&lt;P&gt;User    Account_Type    Employee_RC                         Employee_Department Student_RC&lt;BR /&gt;
user1   Primary                 University Library System (60)  Administrative Services (60080) &lt;BR /&gt;
user2   Primary                  Sch Arts and Sciences (06)         Chemistry (13203)&lt;BR /&gt;&lt;BR /&gt;
user3   Primary          Swansea School of Engineering (23)&lt;BR /&gt;
user4   Primary                  General Counsel (54)                    General Counsel (01020)&lt;BR /&gt;&lt;BR /&gt;
user5   Primary                   Univ of ABC at City Name (42)   Soc Sci-Admin of Just (42249) &lt;BR /&gt;
user6   Primary                   Financial Aid (84)                     General University Budget Only (07118)                               Howler Sch Arts and Sciences (06)&lt;BR /&gt;
user7   Primary                                                                                                                 Howler Sch Arts and Sciences (06)&lt;BR /&gt;
user8   Primary                                                                                                                 Howler Sch Arts and Sciences (06)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228408#M67525</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2020-09-29T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228409#M67526</link>
      <description>&lt;P&gt;FYI - some keys have blank values&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228409#M67526</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-15T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228410#M67527</link>
      <description>&lt;P&gt;Is the case of values of field User different in index/lookup? Lookup is case-sensitive (by default) and will not work if you try to match &lt;CODE&gt;user1&lt;/CODE&gt; with &lt;CODE&gt;User1&lt;/CODE&gt; OR &lt;CODE&gt;USER1&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228410#M67527</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-15T15:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to develop a lookup search to run a stats count by user and return other fields in the output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228411#M67528</link>
      <description>&lt;P&gt;Thx for the info - in my .csv user names are all in caps, whereas the user field in the index the user names are lower case. I modified the .csv and changed upper case to lower case, reloaded the .csv and the lookup works - thx!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 16:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-develop-a-lookup-search-to-run-a-stats-count-by-user-and/m-p/228411#M67528</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2016-11-15T16:28:37Z</dc:date>
    </item>
  </channel>
</rss>

