<?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: inputlookup question, can't find answer anywhere in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49616#M9418</link>
    <description>&lt;P&gt;It works! I had to change """.query.""" to "".query."" though, otherwise it returns an error.  Thanks!!!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2013 08:36:04 GMT</pubDate>
    <dc:creator>jonbalderston</dc:creator>
    <dc:date>2013-08-29T08:36:04Z</dc:date>
    <item>
      <title>inputlookup question, can't find answer anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49613#M9415</link>
      <description>&lt;P&gt;I have a lookup which works, it's not matched to a field, it has to search in the raw event.&lt;BR /&gt;
&lt;/P&gt;&lt;P&gt;&lt;B&gt;[|inputlookup MyFile.csv| fields column_name| rename column_name as search | format]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;This finds all results with names in MyFile.csv and highlights in results.&lt;/P&gt;

&lt;P&gt;I want to output to a table with the result (what the match was from the CSV file). i.e.&lt;BR /&gt;
time,StringFound, etc&lt;/P&gt;

&lt;P&gt;I can do table, etc with everything else in event, just not what was matched from MyFile.csv&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49613#M9415</guid>
      <dc:creator>jonbalderston</dc:creator>
      <dc:date>2020-09-28T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup question, can't find answer anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49614#M9416</link>
      <description>&lt;P&gt;I think to be able to answer if there is a sample of the data and of the entire search statement.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 01:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49614#M9416</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-08-29T01:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup question, can't find answer anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49615#M9417</link>
      <description>&lt;P&gt;This will do the trick. I can't remember where I got it or who helped me put it together but it works...&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;This assumes your lookup table has a single field called 'phrase'. &lt;/LI&gt;
&lt;LI&gt;For example, if you want to search for any reference to a list of IPs&lt;/LI&gt;
&lt;LI&gt;A column called 'hit' is created&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;If your events have a unique key (like a primary key) you can at a 'transaction primarykey' to group all events that contain multiple 'hits'&lt;/P&gt;

&lt;P&gt;index=yourindex [| inputlookup MyFile.csv | rename phrase as search | fields search | format] |     eval rawText= _raw | eval hit=[| inputlookup MyFile.csv | stats values(phrase) as query | eval query=mvjoin(query,",") | fields query | eval query = "\"".query."\""] | eval hit=split(hit,",") | mvexpand hit | eval hit=lower(hit) | eval rawText=lower(rawText) | where like(rawText,"%"+hit+"%") | TABLE *&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 29 Aug 2013 01:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49615#M9417</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2013-08-29T01:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup question, can't find answer anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49616#M9418</link>
      <description>&lt;P&gt;It works! I had to change """.query.""" to "".query."" though, otherwise it returns an error.  Thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 08:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49616#M9418</guid>
      <dc:creator>jonbalderston</dc:creator>
      <dc:date>2013-08-29T08:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup question, can't find answer anywhere</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49617#M9419</link>
      <description>&lt;P&gt;sure no problem. Glad I could help someone as opposed to getting help from others.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputlookup-question-can-t-find-answer-anywhere/m-p/49617#M9419</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2013-08-29T13:55:58Z</dc:date>
    </item>
  </channel>
</rss>

