<?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: Compare index with inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634263#M220324</link>
    <description>&lt;PRE&gt;|tstats count where index=events by user
| lookup policy.csv user&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Mar 2023 13:04:51 GMT</pubDate>
    <dc:creator>danutmatei</dc:creator>
    <dc:date>2023-03-13T13:04:51Z</dc:date>
    <item>
      <title>Comparing index with inputlookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634243#M220306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a policy.csv file with 2 columns:&lt;/P&gt;
&lt;P&gt;user&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tags&lt;/P&gt;
&lt;P&gt;Andre&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IT&lt;/P&gt;
&lt;P&gt;Kleo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Management&lt;/P&gt;
&lt;P&gt;Vlad&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Finance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I also have an index=events with events and field "user"&lt;/P&gt;
&lt;P&gt;What I want is to count the number of events for each tag by user.&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;User&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tags&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Count&lt;/P&gt;
&lt;P&gt;Andre&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried this, but it counts the number of rows from the csv, not from index:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|inputlookup policy.csv
| join type=left tags [|tstats count where index=events by user]
|stats count by user tags&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634243#M220306</guid>
      <dc:creator>danutmatei</dc:creator>
      <dc:date>2023-03-13T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634245#M220308</link>
      <description>&lt;P&gt;Would this work for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=events by user
| lookup policy.csv&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634245#M220308</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-13T11:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634247#M220310</link>
      <description>&lt;P&gt;no&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:51:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634247#M220310</guid>
      <dc:creator>danutmatei</dc:creator>
      <dc:date>2023-03-13T11:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634253#M220316</link>
      <description>&lt;P&gt;In what way does it not work? What else can you tell us about your data which might help us suggest a more meaningful solution?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634253#M220316</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-13T12:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634254#M220317</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Error in 'lookup' command: Must specify one or more lookup fields.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634254#M220317</guid>
      <dc:creator>danutmatei</dc:creator>
      <dc:date>2023-03-13T12:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634257#M220320</link>
      <description>&lt;P&gt;Sorry, try it this way&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=events by user
| lookup policy.csv user&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634257#M220320</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-13T12:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634258#M220321</link>
      <description>&lt;P&gt;bot working, I get 0 statistics&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634258#M220321</guid>
      <dc:creator>danutmatei</dc:creator>
      <dc:date>2023-03-13T12:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634260#M220322</link>
      <description>&lt;P&gt;What is your current search?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634260#M220322</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-13T13:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634263#M220324</link>
      <description>&lt;PRE&gt;|tstats count where index=events by user
| lookup policy.csv user&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634263#M220324</guid>
      <dc:creator>danutmatei</dc:creator>
      <dc:date>2023-03-13T13:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634266#M220326</link>
      <description>&lt;P&gt;Does this return any results?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=events by user&lt;/LI-CODE&gt;&lt;P&gt;If not, how about this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=events
| stats count by user&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634266#M220326</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-13T13:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634268#M220328</link>
      <description>&lt;P&gt;And what should I do with this query ? since is not solving my issue and the lookup file is not included ?!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634268#M220328</guid>
      <dc:creator>danutmatei</dc:creator>
      <dc:date>2023-03-13T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare index with inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634270#M220329</link>
      <description>&lt;P&gt;If you are not getting any results from the tstats or the stats, then the lookup isn't going to make any difference. You need to look at why there are no results. Perhaps the fields don't exist or are spelt differently, including differences in upper and lower case.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-index-with-inputlookup/m-p/634270#M220329</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-13T13:16:49Z</dc:date>
    </item>
  </channel>
</rss>

