<?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 results from map on inputlookup as events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320889#M95872</link>
    <description>&lt;P&gt;If you already understand it's a table when using "inputlookup" function, and you really want to replace the value via table. You need carefully when processing the csv table format. &lt;/P&gt;

&lt;P&gt;For example,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup filename.csv&lt;/CODE&gt; ---&amp;gt; you will get a fieldname with value. and if you want to using pipeline | to process the previous data, you need using like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup filename.csv | search sensitive_kw="12345"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;All I want to  express is it can't be type the command just like normal situation, like&lt;BR /&gt;
&lt;CODE&gt;index=test_indexname "12345"&lt;/CODE&gt; The second example you will get the result you are expected, however the first one not. So when you deal with the &lt;CODE&gt;inputlookup&lt;/CODE&gt;function, the fields name you want to process needs to specify in the SPL. &lt;/P&gt;

&lt;P&gt;Hope this can help to solve your problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 03:29:09 GMT</pubDate>
    <dc:creator>ggssa2000</dc:creator>
    <dc:date>2017-05-30T03:29:09Z</dc:date>
    <item>
      <title>display results from map on inputlookup as events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320884#M95867</link>
      <description>&lt;P&gt;I have a  search like this: &lt;/P&gt;

&lt;P&gt;|inputlookup CSV-Generic-GenCus-GenLBL-SensitiveDataKeyWords.csv  | map [search index="*"  $keyword$ | eval kw=$keyword$, rex=$regex$   | regex($regex$)]&lt;/P&gt;

&lt;P&gt;the results I get back from it are displayed as statistics, not as event, even though the search under the map obviously finds events. Is there a way to display them as events?&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 07:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320884#M95867</guid>
      <dc:creator>fvegdom</dc:creator>
      <dc:date>2017-05-29T07:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: display results from map on inputlookup as events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320885#M95868</link>
      <description>&lt;P&gt;Hi fvegdom,&lt;/P&gt;

&lt;P&gt;in my experience, the result you got when you using "inputlookup" function is a table, not events.&lt;BR /&gt;
So if you want to mask or replace sensitive keywords from invoking CSV file, maybe the command order needs changes.&lt;/P&gt;

&lt;P&gt;Here is my thought :&lt;BR /&gt;
[ your data from index ] | lookup or append CSV file | map command&lt;BR /&gt;
you will get events from search events first, and your using lookup or append function to process your data.&lt;/P&gt;

&lt;P&gt;Have a try &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Ref:&lt;BR /&gt;
1. Append, &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Append"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Append&lt;/A&gt;&lt;BR /&gt;
2. Map, &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/SearchReference/Map"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/SearchReference/Map&lt;/A&gt;&lt;BR /&gt;
3. inputlookup, &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.1/SearchReference/Inputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.1/SearchReference/Inputlookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 07:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320885#M95868</guid>
      <dc:creator>ggssa2000</dc:creator>
      <dc:date>2017-05-29T07:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: display results from map on inputlookup as events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320886#M95869</link>
      <description>&lt;P&gt;It is not possible; the minute that you mix your search stream with &lt;CODE&gt;inputlookup&lt;/CODE&gt;, you lose the &lt;CODE&gt;Events&lt;/CODE&gt; tab, period.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 15:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320886#M95869</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-29T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: display results from map on inputlookup as events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320887#M95870</link>
      <description>&lt;P&gt;Thank you for your answer, I am not surprised that the inputlookup gives me a table, I just want it to do a search for each record in the table and then show the resulting events. &lt;/P&gt;

&lt;P&gt;Thanks for your suggestion&lt;BR /&gt;
I am not sure that will achieve the same result though, and it looks like it would have to retieve all events first.&lt;/P&gt;

&lt;P&gt;My current implementation is such that it is doing a keyword search for each keyword in the file.&lt;BR /&gt;
which is running fairly efficiently. &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 19:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320887#M95870</guid>
      <dc:creator>fvegdom</dc:creator>
      <dc:date>2017-05-29T19:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: display results from map on inputlookup as events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320888#M95871</link>
      <description>&lt;P&gt;That's good to know.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 19:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320888#M95871</guid>
      <dc:creator>fvegdom</dc:creator>
      <dc:date>2017-05-29T19:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: display results from map on inputlookup as events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320889#M95872</link>
      <description>&lt;P&gt;If you already understand it's a table when using "inputlookup" function, and you really want to replace the value via table. You need carefully when processing the csv table format. &lt;/P&gt;

&lt;P&gt;For example,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup filename.csv&lt;/CODE&gt; ---&amp;gt; you will get a fieldname with value. and if you want to using pipeline | to process the previous data, you need using like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup filename.csv | search sensitive_kw="12345"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;All I want to  express is it can't be type the command just like normal situation, like&lt;BR /&gt;
&lt;CODE&gt;index=test_indexname "12345"&lt;/CODE&gt; The second example you will get the result you are expected, however the first one not. So when you deal with the &lt;CODE&gt;inputlookup&lt;/CODE&gt;function, the fields name you want to process needs to specify in the SPL. &lt;/P&gt;

&lt;P&gt;Hope this can help to solve your problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 03:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-results-from-map-on-inputlookup-as-events/m-p/320889#M95872</guid>
      <dc:creator>ggssa2000</dc:creator>
      <dc:date>2017-05-30T03:29:09Z</dc:date>
    </item>
  </channel>
</rss>

