<?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 How to search metrics index with mstats to aggregate by non metrics fields? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-metrics-index-with-mstats-to-aggregate-by-non/m-p/530651#M64253</link>
    <description>&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;Splunk Add-on for Unix and Linux 8.2.0 and enabled metrics index to collect disk usage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can search the disk used percentage by below search but it is the average of all mount point.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats avg(_value) where index=linux-os AND metric_name=df_metric.UsePct&lt;/LI-CODE&gt;&lt;P&gt;If I only want to stats metrics for a specific mount point, it seems there is no way to do it with mstats command. Is there any other approach to do it by utlizing the metrics index fast performance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By searching the raw data for the metrics index,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| msearch index=linux-os | search sourcetype=df_metric&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the search result is like below which shows data was ingested in _json format and metrics are created in a separate metrics index. However, in metrics index, there is no way to differentiate by MountedOn field as it's not a "metrics".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
   Filesystem: /dev/vda1
   IP_address: 10.1.2.3
   MountedOn: /
   OS_name: Linux Server
   OS_version: 3
   Type: ext4
   entity_type: TA_Nix
   environment: dev   
   metric_name:df_metric.Avail_KB: 11035324
   metric_name:df_metric.Size_KB: 20509408
   metric_name:df_metric.UsePct: 44
   metric_name:df_metric.Used_KB: 8429164
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or solution?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 17:16:09 GMT</pubDate>
    <dc:creator>chips</dc:creator>
    <dc:date>2020-11-24T17:16:09Z</dc:date>
    <item>
      <title>How to search metrics index with mstats to aggregate by non metrics fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-metrics-index-with-mstats-to-aggregate-by-non/m-p/530651#M64253</link>
      <description>&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;Splunk Add-on for Unix and Linux 8.2.0 and enabled metrics index to collect disk usage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can search the disk used percentage by below search but it is the average of all mount point.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats avg(_value) where index=linux-os AND metric_name=df_metric.UsePct&lt;/LI-CODE&gt;&lt;P&gt;If I only want to stats metrics for a specific mount point, it seems there is no way to do it with mstats command. Is there any other approach to do it by utlizing the metrics index fast performance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By searching the raw data for the metrics index,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| msearch index=linux-os | search sourcetype=df_metric&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the search result is like below which shows data was ingested in _json format and metrics are created in a separate metrics index. However, in metrics index, there is no way to differentiate by MountedOn field as it's not a "metrics".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
   Filesystem: /dev/vda1
   IP_address: 10.1.2.3
   MountedOn: /
   OS_name: Linux Server
   OS_version: 3
   Type: ext4
   entity_type: TA_Nix
   environment: dev   
   metric_name:df_metric.Avail_KB: 11035324
   metric_name:df_metric.Size_KB: 20509408
   metric_name:df_metric.UsePct: 44
   metric_name:df_metric.Used_KB: 8429164
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or solution?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-metrics-index-with-mstats-to-aggregate-by-non/m-p/530651#M64253</guid>
      <dc:creator>chips</dc:creator>
      <dc:date>2020-11-24T17:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to search metrics index with mstats to aggregate by non metrics fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-metrics-index-with-mstats-to-aggregate-by-non/m-p/530663#M64254</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;didn't realize I can use by clause on the non-metrics field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|mstats avg(_value) where index=linux-os AND metric_name=df_metric.UsePct by MountedOn | where MountedOn="/opt"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 18:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-metrics-index-with-mstats-to-aggregate-by-non/m-p/530663#M64254</guid>
      <dc:creator>chips</dc:creator>
      <dc:date>2020-11-24T18:58:48Z</dc:date>
    </item>
  </channel>
</rss>

