<?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: moving CSV to Database and replace lookup with dbxlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687723#M234549</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Do you have any other alternative if I want to move away from CSV?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 11:34:48 GMT</pubDate>
    <dc:creator>LearningGuy</dc:creator>
    <dc:date>2024-05-16T11:34:48Z</dc:date>
    <item>
      <title>moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687676#M234538</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am currently correlating an index with CSV file using lookup.&lt;BR /&gt;I am planning to move CSV file to database and will replace lookup with dbxlookup.&lt;BR /&gt;Below is my search query using lookup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=student_grade
| lookup student_info.csv No AS No OUPUTNEW Name Address&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my "future" search query using DBXLookup&lt;BR /&gt;&lt;STRONG&gt;Is it going to be this simple?&lt;/STRONG&gt;&lt;BR /&gt;Please share&amp;nbsp; your experience.&amp;nbsp; Thank you so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=student_grade
| dbxlookup connection="studentDB" query="SELECT * FROM student_info"  No AS No OUTPUT Name, Address&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;index=student_grade&lt;/P&gt;&lt;TABLE border="1" width="41.471957477838075%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="17.863984674329505%"&gt;&lt;STRONG&gt;No&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="23.023904714309513%"&gt;&lt;STRONG&gt;Class&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="15.139021398391716%"&gt;&lt;STRONG&gt;Grade&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="17.863984674329505%"&gt;10&lt;/TD&gt;&lt;TD width="23.023904714309513%"&gt;math&lt;/TD&gt;&lt;TD width="15.139021398391716%"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="17.863984674329505%"&gt;10&lt;/TD&gt;&lt;TD width="23.023904714309513%"&gt;english&lt;/TD&gt;&lt;TD width="15.139021398391716%"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="17.863984674329505%"&gt;20&lt;/TD&gt;&lt;TD width="23.023904714309513%"&gt;math&lt;/TD&gt;&lt;TD width="15.139021398391716%"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="17.863984674329505%"&gt;20&lt;/TD&gt;&lt;TD width="23.023904714309513%"&gt;english&lt;/TD&gt;&lt;TD width="15.139021398391716%"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;student_info.csv&lt;/P&gt;&lt;TABLE border="1" width="368px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100.667px"&gt;&lt;STRONG&gt;No&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="133.75px"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="132.583px"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100.667px"&gt;10&lt;/TD&gt;&lt;TD width="133.75px"&gt;student10&lt;/TD&gt;&lt;TD width="132.583px"&gt;Address10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100.667px"&gt;20&lt;/TD&gt;&lt;TD width="133.75px"&gt;student20&lt;/TD&gt;&lt;TD width="132.583px"&gt;Address20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="633px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="114px"&gt;&lt;STRONG&gt;No&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="143px"&gt;&lt;STRONG&gt;Class&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="111px"&gt;&lt;STRONG&gt;Grade&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="133px"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="132px"&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="114px"&gt;10&lt;/TD&gt;&lt;TD width="143px"&gt;math&lt;/TD&gt;&lt;TD width="111px"&gt;A&lt;/TD&gt;&lt;TD width="133px"&gt;student10&lt;/TD&gt;&lt;TD width="132px"&gt;Address10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="114px"&gt;10&lt;/TD&gt;&lt;TD width="143px"&gt;english&lt;/TD&gt;&lt;TD width="111px"&gt;B&lt;/TD&gt;&lt;TD width="133px"&gt;student10&lt;/TD&gt;&lt;TD width="132px"&gt;Address10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="114px"&gt;20&lt;/TD&gt;&lt;TD width="143px"&gt;math&lt;/TD&gt;&lt;TD width="111px"&gt;B&lt;/TD&gt;&lt;TD width="133px"&gt;student20&lt;/TD&gt;&lt;TD width="132px"&gt;Address20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="114px"&gt;20&lt;/TD&gt;&lt;TD width="143px"&gt;english&lt;/TD&gt;&lt;TD width="111px"&gt;C&lt;/TD&gt;&lt;TD width="133px"&gt;student20&lt;/TD&gt;&lt;TD width="132px"&gt;Address20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 16 May 2024 04:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687676#M234538</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-05-16T04:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687678#M234539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254242"&gt;@LearningGuy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this means thta you have much time to spent in front of your pc!&lt;/P&gt;&lt;P&gt;obviously I'm jocking!&lt;/P&gt;&lt;P&gt;this isn't a good idea: usually the approach is the opposite: use an external DB to take static data to store in a lookup or in an index, because the data extractions from a db are usually very slow.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 05:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687678#M234539</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-16T05:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687723#M234549</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Do you have any other alternative if I want to move away from CSV?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 11:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687723#M234549</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-05-16T11:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687725#M234551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254242"&gt;@LearningGuy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;copy your csv in a lookup and use the lookup to enrich your searches.&lt;/P&gt;&lt;P&gt;Remember to create also the Lookup definition.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 12:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687725#M234551</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-16T12:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687726#M234552</link>
      <description>&lt;P&gt;&lt;BR /&gt;Do you mean KVStore?&lt;BR /&gt;Have you tried DBXlookup yourself?&amp;nbsp; How slow is it?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 12:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687726#M234552</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-05-16T12:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687728#M234553</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254242"&gt;@LearningGuy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;use a lookup on a csv or on KV-store, to be eventually populated using a connection with a db, but don't use dbxlookup.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 12:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687728#M234553</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-16T12:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687735#M234555</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Can you rephrase your statement?&amp;nbsp; I am not clear "eventually populated using a connection with a DB"&lt;BR /&gt;Did you mean this flow&lt;BR /&gt;&lt;BR /&gt;DBxquery ==&amp;gt; KVStore&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;&lt;BR /&gt;KVStore ==&amp;gt; DBxquery&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 12:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687735#M234555</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-05-16T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687736#M234556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254242"&gt;@LearningGuy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't know where your csv is coming from:&lt;/P&gt;&lt;P&gt;if it comes from a csv, you can update your lookup (both based on csv or kv-store) from the csv itself.&lt;/P&gt;&lt;P&gt;If instead, you have data in a database table and you extract data from the database in the csv, you can use dbxquery to extract data to populate the lookup.&lt;/P&gt;&lt;P&gt;Anyway, never use lookup -&amp;gt; database, eventually the contrary!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 12:58:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687736#M234556</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-16T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687739#M234559</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;My CSV data is coming from DB which get pulled from DBXquery.&lt;BR /&gt;DB ==&amp;gt; DBXquery ==&amp;gt; CSV&lt;BR /&gt;&lt;BR /&gt;Since CSV have size limitation, so I am thinking just to use the DB via DBXLookup&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 13:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687739#M234559</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-05-16T13:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687747#M234561</link>
      <description>&lt;P&gt;If you're hitting csv size limits, kv-store based lookup might indeed be the solution (the additional bonus - you can update kv-store, don't have to delete and re-create it from scratch as with csv-based lookup).&lt;/P&gt;&lt;P&gt;As for the performance - well, it really depends on the use case. External lookups and external commands will always be slower than Splunk's internal mechanisms because you have to spawn external process, interface with it and so on. But with sufficiently small data sample (you just have a small set of results you have to enrich with something external) it might be "bearable".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 13:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687747#M234561</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-16T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687776#M234577</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;KVStore and CSV are considered internal, correct?&lt;BR /&gt;Based on your experience which one is the fastest?&amp;nbsp; &amp;nbsp;KVStore?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 18:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687776#M234577</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-05-16T18:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687822#M234588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254242"&gt;@LearningGuy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes both the solutions are internal lookups.&lt;/P&gt;&lt;P&gt;They are almonst uqual fast: if you have few rows, hundreds until few thousands, you can use csv, if you have more rows, KV-Store is better.&lt;/P&gt;&lt;P&gt;In addition KV-store is prefereable is you need a key in your csv, eg for thacking.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 05:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687822#M234588</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-17T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687840#M234593</link>
      <description>&lt;P&gt;It's... a bit more complicated.&lt;/P&gt;&lt;P&gt;Both kvstore and csv-based lookups are performed internally by Splunk. There are some differences though - see the details here - &lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/kvstore/" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/kvstore/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It gets more complicated if you want to use a lookup&amp;nbsp; early on in the search pipeline when the processing is still being done on indexers - depending on the particular collection's configuration the data might either be replicated as a part of knowledge bundle &lt;EM&gt;in csv form&lt;/EM&gt; to indexers or the search might be forced to the SH tier (losing the benefits of distributed processing).&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 08:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687840#M234593</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-17T08:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: moving CSV to Database and replace lookup with dbxlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687992#M234616</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254242"&gt;@LearningGuy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can save your static data:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in a csv lookup,&lt;/LI&gt;&lt;LI&gt;in a kv-store lookup,&lt;/LI&gt;&lt;LI&gt;in an Index, if you need time updates on your data.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The more frequent approach is to use a csv lookup.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 06:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/moving-CSV-to-Database-and-replace-lookup-with-dbxlookup/m-p/687992#M234616</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-20T06:20:37Z</dc:date>
    </item>
  </channel>
</rss>

