<?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 read content of refreshed csv file via lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498086#M138740</link>
    <description>&lt;P&gt;Thanks. My objective over here is that i am having some static content which i am loading into the csv file and then reading it using inputlookup. After updating the content curently i have to replace the file in splunk back again.&lt;/P&gt;</description>
    <pubDate>Sun, 17 May 2020 08:45:23 GMT</pubDate>
    <dc:creator>sudeep5689</dc:creator>
    <dc:date>2020-05-17T08:45:23Z</dc:date>
    <item>
      <title>How to read content of refreshed csv file via lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498084#M138738</link>
      <description>&lt;P&gt;Hi, i have configured a csv lookup in splunk. Now i want to change the content of csv file so that it gets updated in splunk lookup search. Is there a way to this&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 06:08:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498084#M138738</guid>
      <dc:creator>sudeep5689</dc:creator>
      <dc:date>2020-05-17T06:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to read content of refreshed csv file via lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498085#M138739</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;There are few ways to perform this,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; Convert your file based lookup to kvstore, which helps you to change the content easy (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/ConfigureKVstorelookups"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/ConfigureKVstorelookups&lt;/A&gt;) &lt;/LI&gt;
&lt;LI&gt;Use lookup editor app to modify contents in the lookup (&lt;A href="https://splunkbase.splunk.com/app/1724/"&gt;https://splunkbase.splunk.com/app/1724/&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;Write a search to modify the contents and update the samelookup
&lt;CODE&gt;|inputlookup abc.csv | &amp;lt;content modify search&amp;gt;   | outputlookup abc.csv&lt;/CODE&gt;
Your  &lt;CODE&gt;&amp;lt;content modify search&amp;gt;&lt;/CODE&gt; can be something like &lt;CODE&gt;|eval &amp;lt;fieldname&amp;gt;=if(fieldname=="something","newvalue","oldvalue")&lt;/CODE&gt; etc., to update field such as &lt;CODE&gt;fieldname&lt;/CODE&gt; values with the new content. Above logic varies based on your requirement, please check eval documentation here (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/CommonEvalFunctions"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/CommonEvalFunctions&lt;/A&gt;) &lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sun, 17 May 2020 08:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498085#M138739</guid>
      <dc:creator>sanjeev543</dc:creator>
      <dc:date>2020-05-17T08:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to read content of refreshed csv file via lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498086#M138740</link>
      <description>&lt;P&gt;Thanks. My objective over here is that i am having some static content which i am loading into the csv file and then reading it using inputlookup. After updating the content curently i have to replace the file in splunk back again.&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 08:45:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498086#M138740</guid>
      <dc:creator>sudeep5689</dc:creator>
      <dc:date>2020-05-17T08:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to read content of refreshed csv file via lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498087#M138741</link>
      <description>&lt;P&gt;@sudeep5689 Yes, may be 2nd option or 3rd option works for you. &lt;BR /&gt;
If my solution  helps, please mark it as answered&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2020 09:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-read-content-of-refreshed-csv-file-via-lookup/m-p/498087#M138741</guid>
      <dc:creator>sanjeev543</dc:creator>
      <dc:date>2020-05-17T09:41:27Z</dc:date>
    </item>
  </channel>
</rss>

