<?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 use Time modifiers in mstats command? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/532634#M89531</link>
    <description>&lt;P&gt;I want to&amp;nbsp; use relative time modifiers (earliest/latest) in mstats command. Not sure how to use the time format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| mstats earliest=-1h avg(xxx) WHERE index=xxx&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is failing since it is in relative time format. Documentation mentions about 'timeformat' attribute but I am not sure how to use it for relative time.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 21:17:30 GMT</pubDate>
    <dc:creator>ssn</dc:creator>
    <dc:date>2022-03-28T21:17:30Z</dc:date>
    <item>
      <title>How to use Time modifiers in mstats command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/532634#M89531</link>
      <description>&lt;P&gt;I want to&amp;nbsp; use relative time modifiers (earliest/latest) in mstats command. Not sure how to use the time format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| mstats earliest=-1h avg(xxx) WHERE index=xxx&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is failing since it is in relative time format. Documentation mentions about 'timeformat' attribute but I am not sure how to use it for relative time.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 21:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/532634#M89531</guid>
      <dc:creator>ssn</dc:creator>
      <dc:date>2022-03-28T21:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time modifiers in mstats command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/565117#M100579</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you ever find a solution for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 20:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/565117#M100579</guid>
      <dc:creator>nbenson27</dc:creator>
      <dc:date>2021-08-27T20:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time modifiers in mstats command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/578974#M102204</link>
      <description>&lt;P&gt;The usage for this is as follows.&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|mstats latest(_value) AS foo WHERE index="some_metrics_index" earliest=-300s latest=now() metric_name=some.metric BY host span=1m&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 20:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/578974#M102204</guid>
      <dc:creator>govardha</dc:creator>
      <dc:date>2021-12-20T20:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Time modifiers in mstats command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/590998#M103529</link>
      <description>&lt;P&gt;Did you ever find a solution for this ? I also have same requirement.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 18:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/590998#M103529</guid>
      <dc:creator>ddvali</dc:creator>
      <dc:date>2022-03-27T18:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Time modifiers in mstats command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/591024#M103532</link>
      <description>&lt;P&gt;You need to put earliest and latest as part of where condition.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats latest(_value) AS val WHERE index="myindex" earliest=-1h@h latest=now BY host span=15m&lt;/LI-CODE&gt;&lt;P&gt;Reference -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Mstats" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Mstats&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 06:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-Time-modifiers-in-mstats-command/m-p/591024#M103532</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-03-28T06:10:10Z</dc:date>
    </item>
  </channel>
</rss>

