<?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 list out all the lookups and display count of records present in each lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-out-all-the-lookups-and-display-count-of-records/m-p/599478#M208661</link>
    <description>&lt;P&gt;You could try something like this (although you may get some errors if your definitions aren't complete):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest/servicesNS/-/-/data/lookup-table-files
| table title
| map maxsearches=200 search="| inputlookup $title$ | eval title="$title$" | stats count by title"&lt;/LI-CODE&gt;&lt;P&gt;Also, note you may have to adjust maxsearches depending on how many files you have.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 18:17:19 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-05-26T18:17:19Z</dc:date>
    <item>
      <title>How to list out all the lookups and display count of records present in each lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-out-all-the-lookups-and-display-count-of-records/m-p/599473#M208660</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to list out all the available splunk lookups and want to display count of records present in each lookups.&lt;/P&gt;
&lt;P&gt;However i found rest command to list out all the lookups but how to get count of records for each lookup ?&lt;/P&gt;
&lt;P&gt;Rest command :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;| rest/servicesNS/-/-/data/lookup-table-files |table title &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I want to display count of records present in each lookup in another column. Is it possible to display with SPL?&lt;/P&gt;
&lt;P&gt;Requesting your valuable feedback and help.&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;Himanshu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 18:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-out-all-the-lookups-and-display-count-of-records/m-p/599473#M208660</guid>
      <dc:creator>himanshu1</dc:creator>
      <dc:date>2022-05-26T18:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to list out all the lookups and display count of records present in each lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-out-all-the-lookups-and-display-count-of-records/m-p/599478#M208661</link>
      <description>&lt;P&gt;You could try something like this (although you may get some errors if your definitions aren't complete):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest/servicesNS/-/-/data/lookup-table-files
| table title
| map maxsearches=200 search="| inputlookup $title$ | eval title="$title$" | stats count by title"&lt;/LI-CODE&gt;&lt;P&gt;Also, note you may have to adjust maxsearches depending on how many files you have.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 18:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-out-all-the-lookups-and-display-count-of-records/m-p/599478#M208661</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T18:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to list out all the lookups and display count of records present in each lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-out-all-the-lookups-and-display-count-of-records/m-p/599573#M208695</link>
      <description>&lt;P&gt;Thank you so much for your valuable feedback.&lt;/P&gt;&lt;P&gt;Query is working fine but it gets terminated if it encounters any invalid lookup.&lt;/P&gt;&lt;P&gt;any workaround to fix this issue ?&lt;/P&gt;&lt;P&gt;Thank You,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 11:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-out-all-the-lookups-and-display-count-of-records/m-p/599573#M208695</guid>
      <dc:creator>himanshu1</dc:creator>
      <dc:date>2022-05-27T11:17:51Z</dc:date>
    </item>
  </channel>
</rss>

