<?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 What is the fastest way to use a lookup (or match records against a secondary source)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644161#M223125</link>
    <description>&lt;P&gt;I have index with json data that represents call data (phone calls), but there is nothing native in the index that represents lists.&lt;/P&gt;
&lt;P&gt;Assume, for example, I have a list called "Splunk Legends" and it represents 10 numbers.&lt;/P&gt;
&lt;P&gt;Currently if I want to 'count all calls last 30d from Splunk Legends, then I do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=mydata 
| stats value(*) by guid -- because I'm joining some other interesting information in this index
| lookup mylookup.csv number OUTPUT list
| search list="Splunk Legends"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;What I dislike about this, of course, is I have to search the entire index.&lt;/P&gt;
&lt;P&gt;Thoughts on a better way to match value against an external data source?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 17:47:53 GMT</pubDate>
    <dc:creator>loganramirez</dc:creator>
    <dc:date>2023-05-22T17:47:53Z</dc:date>
    <item>
      <title>What is the fastest way to use a lookup (or match records against a secondary source)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644161#M223125</link>
      <description>&lt;P&gt;I have index with json data that represents call data (phone calls), but there is nothing native in the index that represents lists.&lt;/P&gt;
&lt;P&gt;Assume, for example, I have a list called "Splunk Legends" and it represents 10 numbers.&lt;/P&gt;
&lt;P&gt;Currently if I want to 'count all calls last 30d from Splunk Legends, then I do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=mydata 
| stats value(*) by guid -- because I'm joining some other interesting information in this index
| lookup mylookup.csv number OUTPUT list
| search list="Splunk Legends"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;What I dislike about this, of course, is I have to search the entire index.&lt;/P&gt;
&lt;P&gt;Thoughts on a better way to match value against an external data source?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 17:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644161#M223125</guid>
      <dc:creator>loganramirez</dc:creator>
      <dc:date>2023-05-22T17:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to use a lookup (or match records against a secondary source)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644170#M223128</link>
      <description>&lt;P&gt;Try incorporating the lookup into the base search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mydata [ | inputlookup mylookup.csv where list="Splunk Legends" | fields number | format ]
| stats value(*) by guid -- because I'm joining some other interesting information in this index
...&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 May 2023 18:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644170#M223128</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-22T18:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to use a lookup (or match records against a secondary source)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644172#M223130</link>
      <description>&lt;P&gt;Legend.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 19:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644172#M223130</guid>
      <dc:creator>loganramirez</dc:creator>
      <dc:date>2023-05-22T19:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is the fastest way to use a lookup (or match records against a secondary source)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644173#M223131</link>
      <description>&lt;P&gt;thoughts on the 10k limit using sub searches like this?&amp;nbsp; just ran into that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 20:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-fastest-way-to-use-a-lookup-or-match-records-against/m-p/644173#M223131</guid>
      <dc:creator>loganramirez</dc:creator>
      <dc:date>2023-05-22T20:24:51Z</dc:date>
    </item>
  </channel>
</rss>

