<?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 edit my search to match a field in events to a field in a CSV lookup table, and output all corresponding results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-match-a-field-in-events-to-a-field-in-a/m-p/258891#M77591</link>
    <description>&lt;P&gt;Try this (lookup match is case sensitive)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=MRM | eval array=split(_raw,""), userGID*=mvindex(array,9)| lookup C360_USERS.csv USERID AS userGID | where isnotnull(EMPLOYEEID) | table USERID,EMPLOYEEID,AVAYAID,FIRSTNAME,LASTNAME,LOCATIONNAME,JOBCODE,JOBTITLE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup C360_USERS.csv [index=MRM | eval array=split(_raw,""), userGID*=mvindex(array,9) | rename userGID AS USERID | table USERID] |table USERID,EMPLOYEEID,AVAYAID,FIRSTNAME,LASTNAME,LOCATIONNAME,JOBCODE,JOBTITLE 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Sep 2016 18:41:57 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-09-06T18:41:57Z</dc:date>
    <item>
      <title>How to edit my search to match a field in events to a field in a CSV lookup table, and output all corresponding results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-match-a-field-in-events-to-a-field-in-a/m-p/258889#M77589</link>
      <description>&lt;P&gt;Lookuptable  = C360_USERS.csv&lt;BR /&gt;
Fields:     USERID,EMPLOYEEID,AVAYAID,FIRSTNAME,LASTNAME,LOCATIONNAME,JOBCODE,JOBTITLE&lt;/P&gt;

&lt;P&gt;I want to get all the results  from the lookuptable matching &lt;STRONG&gt;userGID&lt;/STRONG&gt; from the query. How do I join these two fields userGID and &lt;STRONG&gt;USERID&lt;/STRONG&gt; and get all the information in a table format?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=MRM | eval array=split(_raw,"*"), userGID=mvindex(array,9)|lookup C360_USER ......
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-match-a-field-in-events-to-a-field-in-a/m-p/258889#M77589</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2016-09-06T18:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to match a field in events to a field in a CSV lookup table, and output all corresponding results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-match-a-field-in-events-to-a-field-in-a/m-p/258890#M77590</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup C360_USERS.csv | search [search index=MRM | eval array=split(_raw,""), userGID*=mvindex(array,9 | stats count by userGID | table userGID | rename userGID as USERID] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-match-a-field-in-events-to-a-field-in-a/m-p/258890#M77590</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-06T18:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to match a field in events to a field in a CSV lookup table, and output all corresponding results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-match-a-field-in-events-to-a-field-in-a/m-p/258891#M77591</link>
      <description>&lt;P&gt;Try this (lookup match is case sensitive)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=MRM | eval array=split(_raw,""), userGID*=mvindex(array,9)| lookup C360_USERS.csv USERID AS userGID | where isnotnull(EMPLOYEEID) | table USERID,EMPLOYEEID,AVAYAID,FIRSTNAME,LASTNAME,LOCATIONNAME,JOBCODE,JOBTITLE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup C360_USERS.csv [index=MRM | eval array=split(_raw,""), userGID*=mvindex(array,9) | rename userGID AS USERID | table USERID] |table USERID,EMPLOYEEID,AVAYAID,FIRSTNAME,LASTNAME,LOCATIONNAME,JOBCODE,JOBTITLE 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 18:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-match-a-field-in-events-to-a-field-in-a/m-p/258891#M77591</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-06T18:41:57Z</dc:date>
    </item>
  </channel>
</rss>

