<?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: Extract values bucketed by time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246523#M176153</link>
    <description>&lt;P&gt;Did not work. &lt;/P&gt;

&lt;P&gt;I tried this command: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| rex field=_raw ".*Solr Time: (?\d+)" | mvexpand solrTime | eval natural_log=ln(solrTime) | bucket span=10m _time | stats values(solrTime) as solrTime mean(natural_logs) as log_mean by _time | eval geometric_mean = exp(log_mean)&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:55:28 GMT</pubDate>
    <dc:creator>varsuvius</dc:creator>
    <dc:date>2020-09-29T11:55:28Z</dc:date>
    <item>
      <title>Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246521#M176151</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a bucketed chart in this format:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2186i85E0D4A75A8628D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Is it possible to calculate the geometric mean of the values in each timestamp and add it to another field??&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 12:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246521#M176151</guid>
      <dc:creator>varsuvius</dc:creator>
      <dc:date>2016-11-24T12:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246522#M176152</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | mvexpand solrTime | eval natural_logs=ln(solrTime) | stats values(solrTime) as solrTime mean(natural_logs) as log_mean by _time | eval geometric_mean = exp(log_mean)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Got this from &lt;A href="https://answers.splunk.com/answers/210344/is-anyone-aware-of-the-availability-of-the-geometr.html"&gt;this great post&lt;/A&gt; by @aljohnson&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 13:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246522#M176152</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-24T13:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246523#M176153</link>
      <description>&lt;P&gt;Did not work. &lt;/P&gt;

&lt;P&gt;I tried this command: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| rex field=_raw ".*Solr Time: (?\d+)" | mvexpand solrTime | eval natural_log=ln(solrTime) | bucket span=10m _time | stats values(solrTime) as solrTime mean(natural_logs) as log_mean by _time | eval geometric_mean = exp(log_mean)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246523#M176153</guid>
      <dc:creator>varsuvius</dc:creator>
      <dc:date>2020-09-29T11:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246524#M176154</link>
      <description>&lt;P&gt;I don't believe you need the &lt;CODE&gt;rex&lt;/CODE&gt; command. Add this to the query that resulted in the table you have in your screenshot. Make sure the table has two columns &lt;CODE&gt;_time&lt;/CODE&gt; and &lt;CODE&gt;solrTime&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 14:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246524#M176154</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-24T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246525#M176155</link>
      <description>&lt;P&gt;The query between --- is the initial one that generates that chart.&lt;/P&gt;

&lt;P&gt;--- * | rex field=_raw ".*Solr Time: (?\d+)" | bucket span=10m _time | chart values(solrTime) by _time --- | mvexpand solrTime | eval natural_log=ln(solrTime) | stats values(solrTime) as solrTime mean(natural_logs) as log_mean by _time | eval geometric_mean = exp(log_mean) &lt;/P&gt;

&lt;P&gt;After that, the results are returning only the timestamp.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246525#M176155</guid>
      <dc:creator>varsuvius</dc:creator>
      <dc:date>2020-09-29T11:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246526#M176156</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;---  | rex field=_raw ".*Solr Time: (?\d+)" | bucket span=10m _time | chart values(solrTime) as solrTime by _time | mvexpand solrTime | eval natural_log=ln(solrTime) | stats values(solrTime) as solrTime mean(natural_logs) as log_mean by _time | eval geometric_mean = exp(log_mean)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Nov 2016 15:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246526#M176156</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-24T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246527#M176157</link>
      <description>&lt;P&gt;Still not working.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 15:35:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246527#M176157</guid>
      <dc:creator>varsuvius</dc:creator>
      <dc:date>2016-11-24T15:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246528#M176158</link>
      <description>&lt;P&gt;Try this. Fixed typo&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;---  | rex field=_raw ".*Solr Time: (?\d+)" | bucket span=10m _time | chart values(solrTime) as solrTime by _time | mvexpand solrTime | eval natural_logs=ln(solrTime) | stats values(solrTime) as solrTime mean(natural_logs) as log_mean by _time | eval geometric_mean = exp(log_mean)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this doesn't work, try taking out one segment at a time to see where it stops working.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 15:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246528#M176158</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-24T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract values bucketed by time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246529#M176159</link>
      <description>&lt;P&gt;It's working now. Thanks a lot for your help. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 15:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-values-bucketed-by-time/m-p/246529#M176159</guid>
      <dc:creator>varsuvius</dc:creator>
      <dc:date>2016-11-24T15:56:53Z</dc:date>
    </item>
  </channel>
</rss>

