IrcDirk / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 1 forks source link

Some stats page graphs are not loading #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load the Admin > Stats page
2. Observe "Queries per User" and "Queries" graphs loading, but all others 
missing
3. Click a "Save chart as" link where there is no graph, receive a "TypeError: 
Object doesn't support this property or method" error

What is the expected output? What do you see instead?
I expect all graphs to be displayed, only "Queries per User" and "Queries" 
display instead

What version of the product are you using? On what operating system?
ELSA r354 on Red Hat Enterprise 6

Please provide any additional information below.
A few times on previous versions I've seen all graphs functioning fine, after 
the latest update we did (From a few days ago, not sure which version) we're 
back to having only two graphs show.

Original issue reported on code.google.com by sitko.ma...@gmail.com on 24 Jul 2012 at 1:35

GoogleCodeExporter commented 8 years ago
The stats system itself is getting a major overhaul, as is the graphing system. 
 I'll use this ticket to track those.

Original comment by mchol...@gmail.com on 24 Jul 2012 at 1:43

GoogleCodeExporter commented 8 years ago
Found the issue with blank graphs:  When it queries the stats table, if there 
aren't any results for a period of time within the query (We had our server 
offline for a few days, so there were no entries between the 26th and 29th) 
your query will return null values.  By redefining the query's starting time in 
stats.js to give results from a narrower time frame (using 'iStart = 
Math.round(oDate.getTime() / 1000) - (3600 * 24 * .2);' worked for me), the 
query returned no null results and the graphs displayed fine.

I'm not sure how you grab your information, but if you just have something to 
handle the null values everything should work.

Original comment by sitko.ma...@gmail.com on 30 Jul 2012 at 9:42

GoogleCodeExporter commented 8 years ago
Example result from 'http:\\ELSA/Query/get_stats?start=2012-07-24 
16:36:19&end=2012-07-30 16:36:19':

"data" : {
               "LogsPerSec" : [
                  "68.3031821133686",
                  "35.141081202868",
                  "10.0462539594184",
                  null,
                  null,
                  "26.4058420473672",

...

               ],
               "x" : [
                  "2012-07-26 07:48:27",
                  "2012-07-26 09:54:28",
                  "2012-07-26 10:57:29",
                  null,
                  null,
                  "2012-07-26 14:15:18",

...
               ],

Original comment by sitko.ma...@gmail.com on 30 Jul 2012 at 9:44

GoogleCodeExporter commented 8 years ago
That's helpful, thanks.  I'll incorporate that error checking in the new stats 
system as it's being developed.

Original comment by mchol...@gmail.com on 31 Jul 2012 at 2:15

GoogleCodeExporter commented 8 years ago
This should be fixed with the new stats system.

Original comment by mchol...@gmail.com on 29 Nov 2012 at 10:35