<?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 replace description into timechart results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-description-into-timechart-results/m-p/501351#M195113</link>
    <description>&lt;P&gt;Grate, it is working fine.&lt;/P&gt;

&lt;P&gt;My mistake was:&lt;/P&gt;

&lt;P&gt;index="_introspection" component ="hostwide" &lt;BR /&gt;
 | lookup indexers indexer as splunk_server OUTPUT &lt;STRONG&gt;&lt;EM&gt;indexer as splunk_server&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
 | timechart max(data.mem.mem_used) as Current by &lt;STRONG&gt;&lt;EM&gt;splunk_server&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:00:47 GMT</pubDate>
    <dc:creator>wieslaww</dc:creator>
    <dc:date>2020-09-30T04:00:47Z</dc:date>
    <item>
      <title>How to replace description into timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-description-into-timechart-results/m-p/501349#M195111</link>
      <description>&lt;P&gt;Splunk Enterprise 7.2.0&lt;/P&gt;

&lt;P&gt;I have my query:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index="_itrospection" component ="hostwide" | timechart max(data.mem.mem_used) as Current by splunk_server&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In the legend I see the &lt;EM&gt;splunk_server&lt;/EM&gt; descriptions based on &lt;EM&gt;hostnames&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;I created lookup &lt;EM&gt;indexers.csv&lt;/EM&gt;:&lt;BR /&gt;
indexer,site&lt;BR /&gt;
hostname1,Site-1&lt;BR /&gt;
hostname2,Site-2&lt;/P&gt;

&lt;P&gt;How can I use lookup to replace &lt;EM&gt;splunk_server&lt;/EM&gt; fields by lookup field &lt;EM&gt;site&lt;/EM&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-description-into-timechart-results/m-p/501349#M195111</guid>
      <dc:creator>wieslaww</dc:creator>
      <dc:date>2020-09-30T04:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace description into timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-description-into-timechart-results/m-p/501350#M195112</link>
      <description>&lt;P&gt;Hi @wieslaww do you have 1 to 1 mapping between host name and Site or not?&lt;/P&gt;

&lt;P&gt;If so, create a &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions#Lookup_definitions"&gt;Lookup Definition&lt;/A&gt; for indexers.csv and then change the query as following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_introspection" component ="hostwide" 
| lookup indexers indexer as splunk_server OUTPUT site 
| timechart max(data.mem.mem_used) as Current by site
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-description-into-timechart-results/m-p/501350#M195112</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-02-05T13:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace description into timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-description-into-timechart-results/m-p/501351#M195113</link>
      <description>&lt;P&gt;Grate, it is working fine.&lt;/P&gt;

&lt;P&gt;My mistake was:&lt;/P&gt;

&lt;P&gt;index="_introspection" component ="hostwide" &lt;BR /&gt;
 | lookup indexers indexer as splunk_server OUTPUT &lt;STRONG&gt;&lt;EM&gt;indexer as splunk_server&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
 | timechart max(data.mem.mem_used) as Current by &lt;STRONG&gt;&lt;EM&gt;splunk_server&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-description-into-timechart-results/m-p/501351#M195113</guid>
      <dc:creator>wieslaww</dc:creator>
      <dc:date>2020-09-30T04:00:47Z</dc:date>
    </item>
  </channel>
</rss>

