<?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 is it possible to use json file with csv lookup file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483560#M135380</link>
    <description>&lt;P&gt;Hi all, i have used csv lookup file to csv files to map the values . Can i use json file instead of csv file to map the values from the csv lookup file? &lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 09:35:44 GMT</pubDate>
    <dc:creator>anooshac</dc:creator>
    <dc:date>2020-02-27T09:35:44Z</dc:date>
    <item>
      <title>is it possible to use json file with csv lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483560#M135380</link>
      <description>&lt;P&gt;Hi all, i have used csv lookup file to csv files to map the values . Can i use json file instead of csv file to map the values from the csv lookup file? &lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 09:35:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483560#M135380</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2020-02-27T09:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use json file with csv lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483561#M135381</link>
      <description>&lt;P&gt;No, not directly. Lookup FILES only work with CSV files.&lt;/P&gt;

&lt;P&gt;You may be able to implement an external lookup with a script which parses your JSON data and returns matched values, but you would need to build this yourself.&lt;/P&gt;

&lt;P&gt;Alternativly, you could write the JSON data into the KV store and use a KV lookup instead.&lt;BR /&gt;
There are a couple of approaches for this, but if the json file is updated frequently, you may just be better finding a repeatable way to convert the json data to CSV.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 09:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483561#M135381</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-27T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use json file with csv lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483562#M135382</link>
      <description>&lt;P&gt;Thank you @nickhillscpl , i am yet to explore about these things. Can you please suggest some links to understand these things in a better way.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483562#M135382</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2020-02-27T11:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use json file with csv lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483563#M135383</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|makeresults
| eval _raw="your_json"
| spath
| rename JSON_NESTED_FIELD_NAME AS Clean_Name
| outputcsv your.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483563#M135383</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-27T11:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use json file with csv lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483564#M135384</link>
      <description>&lt;P&gt;@to4kawa read my mind &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;
This would also work if you are already indexing the json file (or can).&lt;/P&gt;

&lt;P&gt;You could even use this approach to populate a kv lookup using &lt;CODE&gt;|outputlookup&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483564#M135384</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-27T11:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use json file with csv lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483565#M135385</link>
      <description>&lt;P&gt;CSV Lookups: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;External Lookups: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/DefineanexternallookupinSplunkWeb"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/DefineanexternallookupinSplunkWeb&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;KV Lookups: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/DefineaKVStorelookupinSplunkWeb"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Knowledge/DefineaKVStorelookupinSplunkWeb&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-use-json-file-with-csv-lookup-file/m-p/483565#M135385</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-27T11:16:57Z</dc:date>
    </item>
  </channel>
</rss>

