<?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 Why are data model metrics not showing up with this search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291818#M88138</link>
    <description>&lt;P&gt;The following searches work : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap_free) AS swap_free FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"

| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap) AS swap FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This doesn’t work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap_used) AS swap_used  FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But via the pivot on the datamodel, I do see  metrics from "All_Performance.Memory.swap_used".   &lt;/P&gt;

&lt;P&gt;Any reason why my search returns nothing for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap_used) AS swap_used  FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:48:44 GMT</pubDate>
    <dc:creator>locose</dc:creator>
    <dc:date>2020-09-29T12:48:44Z</dc:date>
    <item>
      <title>Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291818#M88138</link>
      <description>&lt;P&gt;The following searches work : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap_free) AS swap_free FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"

| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap) AS swap FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This doesn’t work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap_used) AS swap_used  FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But via the pivot on the datamodel, I do see  metrics from "All_Performance.Memory.swap_used".   &lt;/P&gt;

&lt;P&gt;Any reason why my search returns nothing for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats `xxxx_summaries_only` avg(All_Performance.Memory.swap_used) AS swap_used  FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291818#M88138</guid>
      <dc:creator>locose</dc:creator>
      <dc:date>2020-09-29T12:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291819#M88139</link>
      <description>&lt;P&gt;Try using values() instead of avg(), to check what values are extracting.&lt;BR /&gt;
Maybe that field configuration in the datamodel  was supposed to be a number but was configured as a string?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 23:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291819#M88139</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2017-02-08T23:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291820#M88140</link>
      <description>&lt;P&gt;Values() doesn't work and the field is configured as number&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 14:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291820#M88140</guid>
      <dc:creator>locose</dc:creator>
      <dc:date>2017-02-09T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291821#M88141</link>
      <description>&lt;P&gt;What do you mean values doesn't work?&lt;BR /&gt;
What result you get for:&lt;/P&gt;

&lt;P&gt;| tstats &lt;CODE&gt;xxxx_summaries_only&lt;/CODE&gt; values(All_Performance.Memory.swap_used) AS swap_used FROM datamodel=COY_Performance  WHERE nodename="All_Performance.Memory"  AND All_Performance.dest="hostname-11"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291821#M88141</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2020-09-29T12:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291822#M88142</link>
      <description>&lt;P&gt;correct. &lt;BR /&gt;
 tstats xxxx_summaries_only values(All_Performance.Memory.swap_used) AS swap_used FROM datamodel=COY_Performance WHERE nodename="All_Performance.Memory" AND All_Performance.dest="hostname-11"&lt;/P&gt;

&lt;P&gt;didn't work&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291822#M88142</guid>
      <dc:creator>locose</dc:creator>
      <dc:date>2020-09-29T12:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291823#M88143</link>
      <description>&lt;P&gt;didn't work, but what do you get as a result?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 15:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291823#M88143</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2017-02-09T15:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291824#M88144</link>
      <description>&lt;P&gt;"no results found"&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 15:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291824#M88144</guid>
      <dc:creator>locose</dc:creator>
      <dc:date>2017-02-09T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why are data model metrics not showing up with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291825#M88145</link>
      <description>&lt;P&gt;Try to view the table in the pivot, and click "open in search"&lt;BR /&gt;
Then inspect the search details and look in search.log&lt;BR /&gt;
You will find the |tstats that was running in the background&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 15:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-data-model-metrics-not-showing-up-with-this-search/m-p/291825#M88145</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2017-02-09T15:16:43Z</dc:date>
    </item>
  </channel>
</rss>

