<?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: Raw data into calculation. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139105#M38197</link>
    <description>&lt;P&gt;The easiest way to try this out is to do it via &lt;CODE&gt;rex&lt;/CODE&gt;, which extracts these field for the duration of the search. I.e. the configuration is not stored in any config file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search for events | rex "Number\sof\records\s+:\s+(?&amp;lt;rec_num&amp;gt;\d+)\s+Total Size of records\s+:\s+(?&amp;lt;rec_size&amp;gt;\d+) | timechart span=1d avg(rec_num) avg(rec_size)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2014 21:10:50 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2014-02-05T21:10:50Z</dc:date>
    <item>
      <title>Raw data into calculation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139103#M38195</link>
      <description>&lt;P&gt;Timestamp: 1/21/2014 9:40:08 Number of records : 1 Total Size of the records : 1481&lt;/P&gt;

&lt;P&gt;Timestamp: 1/21/2014 3:22:06 Number of records : 6 Total Size of the records : 13032&lt;/P&gt;

&lt;P&gt;Timestamp: 1/22/2014 7:12:41 Number of records : 1 Total Size of the records : 2573&lt;/P&gt;

&lt;P&gt;Above is a sample from my data after I listed the indexes I need. I need to find  daily averages of the both columns. I felt the problem is ":" that I need equal sign instead. I accept the fact that this probably a real newbie on question, thanks for your time.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 19:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139103#M38195</guid>
      <dc:creator>axl88</dc:creator>
      <dc:date>2014-02-05T19:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data into calculation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139104#M38196</link>
      <description>&lt;P&gt;First you'll need to extract the two numbers into fields: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutfields"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutfields&lt;/A&gt;&lt;BR /&gt;
Second you'll need to send those fields into a timechart, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query producing fields foo and bar | timechart span=1d avg(foo) as foo_average avg(bar) as bar_average
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/timechart"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/timechart&lt;/A&gt; for reference.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 20:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139104#M38196</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-05T20:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data into calculation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139105#M38197</link>
      <description>&lt;P&gt;The easiest way to try this out is to do it via &lt;CODE&gt;rex&lt;/CODE&gt;, which extracts these field for the duration of the search. I.e. the configuration is not stored in any config file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search for events | rex "Number\sof\records\s+:\s+(?&amp;lt;rec_num&amp;gt;\d+)\s+Total Size of records\s+:\s+(?&amp;lt;rec_size&amp;gt;\d+) | timechart span=1d avg(rec_num) avg(rec_size)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 21:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139105#M38197</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-05T21:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data into calculation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139106#M38198</link>
      <description>&lt;P&gt;Thanks for the answer. With little modification, it worked fine for me. IFX tool was really helpful on making these modifications.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 21:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-into-calculation/m-p/139106#M38198</guid>
      <dc:creator>axl88</dc:creator>
      <dc:date>2014-02-06T21:53:20Z</dc:date>
    </item>
  </channel>
</rss>

