<?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: It is possible to use a variable under mstats search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/It-is-possible-to-use-a-variable-under-mstats-search/m-p/657526#M227117</link>
    <description>&lt;P&gt;Your a real legend&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;. I didn't realize that you can put wildcards in the middle. Thank you so much for your help. I am new to Splunk so your help is really helpful.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 05:09:25 GMT</pubDate>
    <dc:creator>soulmaker</dc:creator>
    <dc:date>2023-09-14T05:09:25Z</dc:date>
    <item>
      <title>It is possible to use a variable under mstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/It-is-possible-to-use-a-variable-under-mstats-search/m-p/657523#M227115</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a statistic graph in my dashboard using the search below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats rate(vault.runtime.total_gc_pause_ns.value) as gc_pause WHERE `vault_telemetry` AND cluster=* AND (host=*) BY host span=5m
| timechart max(gc_pause) AS iowait bins=1000 BY host
| eval warning=3.3e7, critical=8.3e7&lt;/LI-CODE&gt;&lt;P&gt;**Note that the search below comes from the pre-defined dashboard template but it is not working as is in my environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In my Splunk, when I do a mpreview of my index `vault_telemetry` I am getting a result like the below:&lt;BR /&gt;&lt;BR /&gt;metric_name:vault.&lt;STRONG&gt;hostname1&lt;/STRONG&gt;.runtime.total_gc_pause_ns&lt;BR /&gt;metric_name:vault.&lt;STRONG&gt;hostname2&lt;/STRONG&gt;.runtime.total_gc_pause_ns&lt;BR /&gt;metric_name:vault.&lt;STRONG&gt;hostname3&lt;/STRONG&gt;.runtime.total_gc_pause_ns&lt;BR /&gt;metric_name:vault.&lt;STRONG&gt;hostname3&lt;/STRONG&gt;.runtime.total_gc_pause_ns&lt;BR /&gt;metric_name:vault.&lt;STRONG&gt;hostname4&lt;/STRONG&gt;.runtime.total_gc_pause_ns&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If I modify the pre-defined search from the template using the below I can get the result however, I can only do it on one hostname.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats rate(vault.hostname1.runtime.total_gc_pause_ns) as gc_pause WHERE `vault_telemetry` span=5m
| timechart max(gc_pause) AS iowait bins=1000
| eval warning=3.3e7, critical=8.3e7&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have all the hostname shows on my single panel. Can someone please able to assist and help me with the correct search index I need to use?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 04:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/It-is-possible-to-use-a-variable-under-mstats-search/m-p/657523#M227115</guid>
      <dc:creator>soulmaker</dc:creator>
      <dc:date>2023-09-14T04:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use a variable under mstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/It-is-possible-to-use-a-variable-under-mstats-search/m-p/657524#M227116</link>
      <description>&lt;P&gt;If I understood correctly, just use wildcards&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats rate(vault.hostname*.runtime.total_gc_pause_ns) as gc_pause_* WHERE `vault_telemetry` span=5m
| timechart max(gc_pause_*) AS iowait_* bins=1000
| eval warning=3.3e7, critical=8.3e7&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 04:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/It-is-possible-to-use-a-variable-under-mstats-search/m-p/657524#M227116</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-09-14T04:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use a variable under mstats search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/It-is-possible-to-use-a-variable-under-mstats-search/m-p/657526#M227117</link>
      <description>&lt;P&gt;Your a real legend&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;. I didn't realize that you can put wildcards in the middle. Thank you so much for your help. I am new to Splunk so your help is really helpful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 05:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/It-is-possible-to-use-a-variable-under-mstats-search/m-p/657526#M227117</guid>
      <dc:creator>soulmaker</dc:creator>
      <dc:date>2023-09-14T05:09:25Z</dc:date>
    </item>
  </channel>
</rss>

