<?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 convert current graph numbers into actual names using a lookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167581#M47708</link>
    <description>&lt;P&gt;I assumed that the columns in your table were&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name,clientName
100585,"ABC client"
211468,"XYZ client"
etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It would actually be clearer if the CSV headings were &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OOID,clientName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then the lookup command would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;lookup client_lookup OOID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Aug 2015 15:55:24 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2015-08-11T15:55:24Z</dc:date>
    <item>
      <title>How to convert current graph numbers into actual names using a lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167578#M47705</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;So I currently have a search which has "the five most active OOID's by folder activity". The OOID (Organization ID) is just a number that refers to an actual client name. What I am trying to do is integrate a lookup file that I have named "OOID_File" which is a csv file with two columns. The first column is called "name" and that has the actual OOID numbers, and the second column called "clientName" is the actual client name respectively. &lt;/P&gt;

&lt;P&gt;The search I am trying to do all of this with is here:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=doccloud_main sourcetype=doccloud_catalina "OOID Folder workspace" |  rex "(?&amp;lt;action&amp;gt;created|updated|deleted\/moved) (?:.*) OOID:(?&amp;lt;OOID&amp;gt;[^,]+)" | chart count by OOID action  | addtotals | sort 5 -Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think I have all the necessary information, but should you have any further questions or need clarification please just ask!&lt;/P&gt;

&lt;P&gt;Thanks for taking the time to read!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 14:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167578#M47705</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-08-11T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert current graph numbers into actual names using a lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167579#M47706</link>
      <description>&lt;P&gt;Here is a &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/SearchTutorial/Usefieldlookups"&gt;tutorial on field lookups&lt;/A&gt;. It walks through how to set up your CSV file as a lookup table. If you load your CSV file following these directions, here is your search with a manual lookup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=doccloud_main sourcetype=doccloud_catalina "OOID Folder workspace" 
|  rex "(?&amp;lt;action&amp;gt;created|updated|deleted\/moved) (?:.*) OOID:(?&amp;lt;OOID&amp;gt;[^,]+)" 
| lookup client_lookup name as OOID
| chart count by clientName action  | addtotals | sort 5 -Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that I named the lookup &lt;CODE&gt;client_lookup&lt;/CODE&gt;&lt;BR /&gt;
If you set an automatic lookup, then your search would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=doccloud_main sourcetype=doccloud_catalina "OOID Folder workspace" 
|  rex "(?&amp;lt;action&amp;gt;created|updated|deleted\/moved) (?:.*) OOID:(?&amp;lt;OOID&amp;gt;[^,]+)" 
| chart count by clientName action  | addtotals | sort 5 -Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Aug 2015 15:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167579#M47706</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-08-11T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert current graph numbers into actual names using a lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167580#M47707</link>
      <description>&lt;P&gt;Thanks for you're quick response! I added the lookup table and lookup definition as you mentoned. I even deleted my old table and renamed it to be the same as yours to "client_lookup" and tried executing the manual search and it would not work.&lt;/P&gt;

&lt;P&gt;Tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=doccloud_main sourcetype=doccloud_catalina "OOID Folder workspace" 
 |  rex "(?&amp;lt;action&amp;gt;created|updated|deleted\/moved) (?:.*) OOID:(?&amp;lt;OOID&amp;gt;[^,]+)" 
 | lookup client_lookup name as OOID
 | chart count by clientName action  | addtotals | sort 5 -Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and now it is displaying 0 events. I even tried just doing "lookup client_lookup" and it will not display anything. 0.0&lt;/P&gt;

&lt;P&gt;HELP!!! &lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 15:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167580#M47707</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-08-11T15:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert current graph numbers into actual names using a lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167581#M47708</link>
      <description>&lt;P&gt;I assumed that the columns in your table were&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name,clientName
100585,"ABC client"
211468,"XYZ client"
etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It would actually be clearer if the CSV headings were &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OOID,clientName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then the lookup command would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;lookup client_lookup OOID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Aug 2015 15:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167581#M47708</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-08-11T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert current graph numbers into actual names using a lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167582#M47709</link>
      <description>&lt;P&gt;Yes the fields in my data are as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; OOID                                      clientName
  G3XQ74RR1N1894WK         Barney's Frost Cake
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also changed the headings to what you have suggested, OOID and clientName respectively.  Deleted old csv from lookups uploaded new one with new headers and tried executing the same search and did not get any luck with it.&lt;/P&gt;

&lt;P&gt;Any suggestions on what to do next?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 17:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167582#M47709</guid>
      <dc:creator>splunkman341</dc:creator>
      <dc:date>2015-08-11T17:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert current graph numbers into actual names using a lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167583#M47710</link>
      <description>&lt;P&gt;Yes, there is a problem here! Your CSV file must actually have commas!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 18:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-current-graph-numbers-into-actual-names-using-a/m-p/167583#M47710</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-08-11T18:38:43Z</dc:date>
    </item>
  </channel>
</rss>

