<?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: How to divide the results of a timechart by statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-the-results-of-a-timechart-by-statement/m-p/599286#M208632</link>
    <description>&lt;P&gt;With dynamic columns, you'd use foreach command. Like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="murex_logs" 
| timechart span=1m count by mx.env
| foreach * [| eval "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;"=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/60,2)]&lt;/LI-CODE&gt;&lt;P&gt;"&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" is a literal string to be used as-is. See more information on foreach command here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/SearchReference/Foreach" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.6/SearchReference/Foreach&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 12:59:26 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2022-05-25T12:59:26Z</dc:date>
    <item>
      <title>How to divide the results of a timechart by statement?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-the-results-of-a-timechart-by-statement/m-p/599250#M208614</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have a basic statement, however, I want the answers to be in per second. So I need to provide all the results by 60, however, as I am using the &lt;STRONG&gt;by&lt;/STRONG&gt; command I cant do something like eval count = count/60. As all the columns are different - I might be able to use a for - but this might affect _time. Any ideas? Am i missing something simple hear?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="murex_logs" 

| timechart span=1m count by mx.env&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_0-1653475015949.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19814iC6AD429398F28C3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robertlynch2020_0-1653475015949.png" alt="robertlynch2020_0-1653475015949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 18:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-the-results-of-a-timechart-by-statement/m-p/599250#M208614</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2022-05-25T18:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide the results of a timechart by statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-the-results-of-a-timechart-by-statement/m-p/599252#M208616</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="murex_logs"
| bucket span=1min _time
| stats count by mx.enc _time&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 May 2022 10:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-the-results-of-a-timechart-by-statement/m-p/599252#M208616</guid>
      <dc:creator>Software-Simian</dc:creator>
      <dc:date>2022-05-25T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide the results of a timechart by statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-the-results-of-a-timechart-by-statement/m-p/599286#M208632</link>
      <description>&lt;P&gt;With dynamic columns, you'd use foreach command. Like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="murex_logs" 
| timechart span=1m count by mx.env
| foreach * [| eval "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;"=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/60,2)]&lt;/LI-CODE&gt;&lt;P&gt;"&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" is a literal string to be used as-is. See more information on foreach command here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/SearchReference/Foreach" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.6/SearchReference/Foreach&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-the-results-of-a-timechart-by-statement/m-p/599286#M208632</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-05-25T12:59:26Z</dc:date>
    </item>
  </channel>
</rss>

