<?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: Display data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470131#M132287</link>
    <description>&lt;P&gt;Like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup YourLookupFileNameHere.csv
| stats values(*) AS * BY Code Description
| fillnull Description value="UNKNOWN"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 28 Dec 2019 23:57:29 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-12-28T23:57:29Z</dc:date>
    <item>
      <title>Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470124#M132280</link>
      <description>&lt;P&gt;How would I display the following data which is part of CSV file? I am looking for a command to do that. top is not working, I can't think of other commands to display&lt;BR /&gt;
Code    Description&lt;BR /&gt;
200 Success&lt;BR /&gt;
503 Service unavailable&lt;BR /&gt;
406 Not Acceptable Client&lt;BR /&gt;
400 Bad Request Error&lt;BR /&gt;
408 Request Timeout&lt;BR /&gt;
500 Internal Server Error&lt;BR /&gt;
404 Page Not Found&lt;BR /&gt;
505 &lt;BR /&gt;
403 &lt;/P&gt;

&lt;P&gt;I want blank values for 505 and 403 to be displayed so that I can try fillnull command.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 09:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470124#M132280</guid>
      <dc:creator>palisetty</dc:creator>
      <dc:date>2019-12-27T09:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470125#M132281</link>
      <description>&lt;P&gt;@gcusello any help please&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 09:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470125#M132281</guid>
      <dc:creator>palisetty</dc:creator>
      <dc:date>2019-12-27T09:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470126#M132282</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Whether that file is part of lookup, if so try with &lt;CODE&gt;inputlookup&lt;/CODE&gt; or &lt;CODE&gt;lookup&lt;/CODE&gt; commands&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 09:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470126#M132282</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-12-27T09:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470127#M132283</link>
      <description>&lt;P&gt;Ravi, they are not part of lookup. any simple commands would do? I will try to display from lookup too&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 09:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470127#M132283</guid>
      <dc:creator>palisetty</dc:creator>
      <dc:date>2019-12-27T09:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470128#M132284</link>
      <description>&lt;P&gt;If you are looking for answers to the exam, ask such questions.&lt;BR /&gt;
You mentioned in the video, right?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Splexicon:Transformingcommand"&gt;Transforming command&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 13:35:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470128#M132284</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-27T13:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470129#M132285</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32936"&gt;@palisetty&lt;/a&gt;,&lt;BR /&gt;
thanks you for your estimate!&lt;/P&gt;

&lt;P&gt;Anyway the solution is the one hinted by &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/156785"&gt;@vnravikumar&lt;/a&gt;: if you already have loaded your csv in a lookup (called e.g. ws_codes.csv) you can use it in three ways using two commands &lt;CODE&gt;inputlookup&lt;/CODE&gt; and lookup:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;to list the lookup values you can use &lt;CODE&gt;| inputlookup ws_codes.csv&lt;/CODE&gt;;&lt;/LI&gt;
&lt;LI&gt;to filter search results with the content of the lookup you can use &lt;CODE&gt;index=my_index [ | inputlookup ws_codes.csv | fields Code] | ...&lt;/CODE&gt;;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;to enrich a search result with the content of the lookup, adding e.g. Description that isn't present in the search result:&lt;/P&gt;

&lt;P&gt;index=my_index &lt;BR /&gt;
| lookup ws_codes.csv Code AS your_Code_field OUTPUT Description&lt;BR /&gt;
| table _time my_fields Cods Description&lt;BR /&gt;
You can find infos on these commands at &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Inputlookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Inputlookup&lt;/A&gt; and &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Lookup&lt;/A&gt; .&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If instead you still haven't loaded the csv in the lookup you have to follow two ways:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Use Lookup Editor app (the easiest!);&lt;/LI&gt;
&lt;LI&gt;create a new lookup in [Settings -- Lookups -- Lookup table files-- Add new].&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In both cases, remember to create a Lookup Definition [Settings -- Lookups -- Lookup definition -- Add new].&lt;/P&gt;

&lt;P&gt;Ciao and Happy New Year.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470129#M132285</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T03:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470130#M132286</link>
      <description>&lt;P&gt;@gcusello Actually, I didn't want to use lookup. &lt;BR /&gt;
I am so stupid but later figured it how simple it is.&lt;BR /&gt;
Just upload the file as I am an Administrator on my machine.  Then use head or table commands. then use fillnull value=whatevervalue.&lt;/P&gt;

&lt;P&gt;Thank you again. Hope you had a wonderful Christmas&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 06:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470130#M132286</guid>
      <dc:creator>palisetty</dc:creator>
      <dc:date>2019-12-28T06:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Display data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470131#M132287</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup YourLookupFileNameHere.csv
| stats values(*) AS * BY Code Description
| fillnull Description value="UNKNOWN"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Dec 2019 23:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data/m-p/470131#M132287</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-28T23:57:29Z</dc:date>
    </item>
  </channel>
</rss>

