<?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 remove a field from a visualization, but not remove it from search results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249681#M74526</link>
    <description>&lt;P&gt;The answer depends on the type of visualization you are using, and why you need the Description field to stay in the results.&lt;/P&gt;

&lt;P&gt;Can you share some of you SimpleXML that would clarify those two things?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2017 11:20:59 GMT</pubDate>
    <dc:creator>rjthibod</dc:creator>
    <dc:date>2017-01-24T11:20:59Z</dc:date>
    <item>
      <title>How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249678#M74523</link>
      <description>&lt;P&gt;I have search results like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Host---------------Description------------ EventSize
127.0.0.1----------Prod DB---------------- 90
127.0.0.2----------Trade Service---------- 34
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need remove "Description" field from visualization (for chart like "EventSize by Host"), but don't remove this field from search results. How can i do that?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;UPD. &lt;BR /&gt;
It isn't dashboard, so it haven't SIMPLE XML. I use this search for my report:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup Source_description #add CSV lookup with Descriptions
|fields Host Description
|join 
    [search index=_internal source=*license_usage.log type="Usage"
    |stats sum(b) as b by h
    |eval TotalSizeMB=if(len(b)=0 OR isnull (b), "0.00", round (b/1024/1024,2))
    |fields h, TotyalSizeMB
    |rename h AS Host ]
|fields Host Description ToyalSizeMB
|sort 5 - TotalSizeMB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And i have this statistics and visualization tabs like this:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2355i8C35B4C6CE6CC27B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;You can see that description field useless in chart, but usefull in statistics table.&lt;BR /&gt;
I can use comand like this: " |eval Host=Host." - ".Description |fields - Description " to merge 2 fields, but it isn't the best solution, because it becomes difficult to read Host field.&lt;/P&gt;

&lt;P&gt;So, how can i remove this field from chart, but save it in statistics search?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 13:57:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249678#M74523</guid>
      <dc:creator>ronekarleone</dc:creator>
      <dc:date>2017-01-23T13:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249679#M74524</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=whatever
| fields Host, Description, EventSize
| table Host, EventSize
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Skalli&lt;/P&gt;

&lt;P&gt;Edit: With your search of course.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249679#M74524</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-01-23T17:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249680#M74525</link>
      <description>&lt;P&gt;Thanks for reply, but it doesn't work. Table command remove "description" field from statistics tab in search result. Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 10:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249680#M74525</guid>
      <dc:creator>ronekarleone</dc:creator>
      <dc:date>2017-01-24T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249681#M74526</link>
      <description>&lt;P&gt;The answer depends on the type of visualization you are using, and why you need the Description field to stay in the results.&lt;/P&gt;

&lt;P&gt;Can you share some of you SimpleXML that would clarify those two things?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249681#M74526</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-24T11:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249682#M74527</link>
      <description>&lt;P&gt;Thanks for reply. I added to post all information.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249682#M74527</guid>
      <dc:creator>ronekarleone</dc:creator>
      <dc:date>2017-01-24T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249683#M74528</link>
      <description>&lt;P&gt;You can use  a post-processing search to generate the chart without the Description.&lt;/P&gt;

&lt;P&gt;Assume this is the definition of your table. Note the &lt;CODE&gt;&amp;lt;search id="base_search&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;table&amp;gt;
  &amp;lt;title&amp;gt;...&amp;lt;/title
  &amp;lt;search id="base_search&amp;gt;
    &amp;lt;query&amp;gt;
 |inputlookup Source_description #add CSV lookup with Descriptions
 |fields Host Description
 |join 
     [search index=_internal source=*license_usage.log type="Usage"
     |stats sum(b) as b by h
     |eval TotalSizeMB=if(len(b)=0 OR isnull (b), "0.00", round (b/1024/1024,2))
     |fields h, TotyalSizeMB
     |rename h AS Host ]
 |fields Host Description ToyalSizeMB
 |sort 5 - TotalSizeMB
    &amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you can use &lt;CODE&gt;&amp;lt;search base="base_search"&amp;gt;&lt;/CODE&gt; as a post-processing search to remove that one field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart&amp;gt;
  &amp;lt;title&amp;gt;...&amp;lt;/title
  &amp;lt;search base="base_search"&amp;gt;
    &amp;lt;query&amp;gt;
      fields Host ToyalSizeMB
    &amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
&amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:09:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249683#M74528</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-24T12:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249684#M74529</link>
      <description>&lt;P&gt;It's nice solution for dashboards, but not for reports (saved searchs). But in any case, thank you! This is the best answer for this moment.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 11:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249684#M74529</guid>
      <dc:creator>ronekarleone</dc:creator>
      <dc:date>2017-02-03T11:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249685#M74530</link>
      <description>&lt;P&gt;I did not know you needed it for a saved search/report. If that is the case, it would be helpful for you to restate the desired configuration, for example, what fields need to be available where.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 12:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249685#M74530</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-02-03T12:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249686#M74531</link>
      <description>&lt;P&gt;I am in a similar situation as was presented in this instance. Suppose we use it and continue on? Is there a way...in saved reports...to 'hide' the field DESCRIPTION in the chart, but still have it present in the table/results?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 13:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249686#M74531</guid>
      <dc:creator>f5x6kb8</dc:creator>
      <dc:date>2017-06-27T13:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249687#M74532</link>
      <description>&lt;P&gt;Hi! I didn't find solution for saved reports. So i have changed this project and now use dasboards instead saved reports. &lt;BR /&gt;
First panel is "EventSize by Host" chart and second panel is "host, description, EventSize" table.&lt;BR /&gt;
It's only solution that i found.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249687#M74532</guid>
      <dc:creator>ronekarleone</dc:creator>
      <dc:date>2017-07-27T18:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a field from a visualization, but not remove it from search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249688#M74533</link>
      <description>&lt;P&gt;Please accept my answer if the gist of it demonstrated how to fix the issue in the case of dashboards&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:51:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-field-from-a-visualization-but-not-remove-it/m-p/249688#M74533</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-07-27T18:51:11Z</dc:date>
    </item>
  </channel>
</rss>

