<?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 timechart , streanstats Question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76540#M19366</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=syslog | timechart span=1m count by Protocol | streamstats sum() avg()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result of this query is as follows:&lt;BR /&gt;
(Time fields have been omitted.)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;17  2  6   avg(17)  avg(2)  avg(6)   sum(17)  sum(2)  sum(6)  
4   0  30  4.0000   0.0000  30.0000  4        0       30       
14  1  103 9.0000   0.5000  66.5000  18       1       133      
21  0  5   13.000   0.3333  46.0000  39       1       138      
22  1  0   15.250   0.5000  34.5000  61       2       138    
20  0  12  16.200   0.4000  30.0000  81       2       150      
11  1  32  15.333   0.5000  30.3333  92       3       182    


sourcetype=syslog | timechart span=1m count by Protocol 
| streamstats sum() avg()
| eval S/A=sum+avg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The results of this query as the table below and are stoked.&lt;BR /&gt;
However, the results of the query does not appear.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;17  2  6   avg(17)  avg(2)  avg(6)   sum(17)  sum(2)  sum(6)  S/A(17)  S/A(2)  S/A(6) 
4   0  30  4.0000   0.0000  30.0000  4        0       30      ?        ?       ?
14  1  103 9.0000   0.5000  66.5000  18       1       133     ?        ?       ?
21  0  5   13.000   0.3333  46.0000  39       1       138     ?        ?       ?
22  1  0   15.250   0.5000  34.5000  61       2       138     ?        ?       ?
20  0  12  16.200   0.4000  30.0000  81       2       150     ?        ?       ?
11  1  32  15.333   0.5000  30.3333  92       3       182     ?        ?       ?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do you create a query?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2013 02:02:09 GMT</pubDate>
    <dc:creator>qfjp</dc:creator>
    <dc:date>2013-09-30T02:02:09Z</dc:date>
    <item>
      <title>timechart , streanstats Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76540#M19366</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=syslog | timechart span=1m count by Protocol | streamstats sum() avg()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result of this query is as follows:&lt;BR /&gt;
(Time fields have been omitted.)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;17  2  6   avg(17)  avg(2)  avg(6)   sum(17)  sum(2)  sum(6)  
4   0  30  4.0000   0.0000  30.0000  4        0       30       
14  1  103 9.0000   0.5000  66.5000  18       1       133      
21  0  5   13.000   0.3333  46.0000  39       1       138      
22  1  0   15.250   0.5000  34.5000  61       2       138    
20  0  12  16.200   0.4000  30.0000  81       2       150      
11  1  32  15.333   0.5000  30.3333  92       3       182    


sourcetype=syslog | timechart span=1m count by Protocol 
| streamstats sum() avg()
| eval S/A=sum+avg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The results of this query as the table below and are stoked.&lt;BR /&gt;
However, the results of the query does not appear.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;17  2  6   avg(17)  avg(2)  avg(6)   sum(17)  sum(2)  sum(6)  S/A(17)  S/A(2)  S/A(6) 
4   0  30  4.0000   0.0000  30.0000  4        0       30      ?        ?       ?
14  1  103 9.0000   0.5000  66.5000  18       1       133     ?        ?       ?
21  0  5   13.000   0.3333  46.0000  39       1       138     ?        ?       ?
22  1  0   15.250   0.5000  34.5000  61       2       138     ?        ?       ?
20  0  12  16.200   0.4000  30.0000  81       2       150     ?        ?       ?
11  1  32  15.333   0.5000  30.3333  92       3       182     ?        ?       ?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do you create a query?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 02:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76540#M19366</guid>
      <dc:creator>qfjp</dc:creator>
      <dc:date>2013-09-30T02:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: timechart , streanstats Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76541#M19367</link>
      <description>&lt;P&gt;can you clarify that is your goal ?&lt;/P&gt;

&lt;P&gt;also S/A may not be a valid field name, try "S/A"&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 03:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76541#M19367</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-09-30T03:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: timechart , streanstats Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76542#M19368</link>
      <description>&lt;P&gt;or "s_a". From the documentation;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Valid characters for field names are a-z, A-Z, 0-9, or _ .&lt;/LI&gt;
&lt;LI&gt;Field names cannot begin with 0-9 or _ . Leading underscores are reserved for Splunk's internal variables.&lt;/LI&gt;
&lt;LI&gt;International characters are not allowed.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 30 Sep 2013 05:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76542#M19368</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-09-30T05:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: timechart , streanstats Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76543#M19369</link>
      <description>&lt;P&gt;Do what kkolb says. Fieldnames can't be "S/A", it needs to be s_a.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 18:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-streanstats-Question/m-p/76543#M19369</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-09-30T18:56:11Z</dc:date>
    </item>
  </channel>
</rss>

