<?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 Use csv (input/outputlookup) to display label from csv in pie chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-csv-input-outputlookup-to-display-label-from-csv-in-pie/m-p/340278#M100903</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a working search which returns me IDs for specifing meanings of the values. I also have a working inputlookup file which has the sime IDs and the meaning of the IDs. I'd like to display the meaning value from the inputlookup file instead of the IDs. Is this possible?&lt;/P&gt;

&lt;P&gt;Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rc sourcetype=OtcsRemoteCache Operation="1*" 
|  stats count by Operation
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/205729-capture.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;The lookup looks as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OperationCode,Meaning,Direction
1001,Create Document,Remote Cache
1002,Get Version Metadata, Remote Cache
1003,Get Version Metadata from Cache, Remote Cache
1004,Get Version Content,Remote Cache
1005,Get Web Page, Remote Cache
1006,Get Document, Remote Cache
1007,Add Web Pages,Remote Cache
1008,Add Version,Remote Cache
1009,Promote Version,Remote Cache
1010,Delete,Remote Cache
1011,Get SNF for Document ID,Remote Cache
1012,Get Component Stream,Remote Cache
1013,Get Component Stream from Cache,Remote Cache
1014,Set Component Stream,Remote Cache
1015,Get Component Info,Remote Cache
1016,Get Component Info from Cache,Remote Cache
1017,Delete Component,Remote Cache
1018,Create Component,Remote Cache
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The following search returns the correct values:&lt;BR /&gt;
    | inputlookup otcs_remote_cache_lookup.csv &lt;BR /&gt;
    |  where Direction="Remote Cache"&lt;BR /&gt;
    |  table Meaning, OperationCode&lt;/P&gt;

&lt;P&gt;How can I display the Meaning field from the lookup in the pie chart instead of the IDs?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Martin&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 14:24:42 GMT</pubDate>
    <dc:creator>mhornste</dc:creator>
    <dc:date>2020-09-29T14:24:42Z</dc:date>
    <item>
      <title>Use csv (input/outputlookup) to display label from csv in pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-csv-input-outputlookup-to-display-label-from-csv-in-pie/m-p/340278#M100903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a working search which returns me IDs for specifing meanings of the values. I also have a working inputlookup file which has the sime IDs and the meaning of the IDs. I'd like to display the meaning value from the inputlookup file instead of the IDs. Is this possible?&lt;/P&gt;

&lt;P&gt;Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=rc sourcetype=OtcsRemoteCache Operation="1*" 
|  stats count by Operation
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/205729-capture.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;The lookup looks as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OperationCode,Meaning,Direction
1001,Create Document,Remote Cache
1002,Get Version Metadata, Remote Cache
1003,Get Version Metadata from Cache, Remote Cache
1004,Get Version Content,Remote Cache
1005,Get Web Page, Remote Cache
1006,Get Document, Remote Cache
1007,Add Web Pages,Remote Cache
1008,Add Version,Remote Cache
1009,Promote Version,Remote Cache
1010,Delete,Remote Cache
1011,Get SNF for Document ID,Remote Cache
1012,Get Component Stream,Remote Cache
1013,Get Component Stream from Cache,Remote Cache
1014,Set Component Stream,Remote Cache
1015,Get Component Info,Remote Cache
1016,Get Component Info from Cache,Remote Cache
1017,Delete Component,Remote Cache
1018,Create Component,Remote Cache
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The following search returns the correct values:&lt;BR /&gt;
    | inputlookup otcs_remote_cache_lookup.csv &lt;BR /&gt;
    |  where Direction="Remote Cache"&lt;BR /&gt;
    |  table Meaning, OperationCode&lt;/P&gt;

&lt;P&gt;How can I display the Meaning field from the lookup in the pie chart instead of the IDs?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-csv-input-outputlookup-to-display-label-from-csv-in-pie/m-p/340278#M100903</guid>
      <dc:creator>mhornste</dc:creator>
      <dc:date>2020-09-29T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use csv (input/outputlookup) to display label from csv in pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-csv-input-outputlookup-to-display-label-from-csv-in-pie/m-p/340279#M100904</link>
      <description>&lt;P&gt;Create a Lookup Definition for &lt;STRONG&gt;otcs_remote_cache_lookup.csv&lt;/STRONG&gt; as &lt;STRONG&gt;otcs_remote_cache_lookup&lt;/STRONG&gt; from &lt;STRONG&gt;Settings &amp;gt; Lookup &amp;gt; Lookup Definition&lt;/STRONG&gt; (grant required permission)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=rc sourcetype=OtcsRemoteCache Operation="1*" 
| stats count by Operation
| lookup otcs_remote_cache_lookup OperationCode as Operation output Meaning
| fields - Operation
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-csv-input-outputlookup-to-display-label-from-csv-in-pie/m-p/340279#M100904</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T14:20:29Z</dc:date>
    </item>
  </channel>
</rss>

