Kibana showing different data on different visualizations for same condition or query - elastic-stack

I have applied Kibana monitoring on S server. I am getting logs, set fields and everything seem to working fine. Now Pie Chart that I made for S Server response code, showing 519 404 hits while on server for today there are only 117 404 hits for today. I already ensured that I am seeing data for today as well as for S server only and no Server else.
Then to further drill down what going wrong, I make data table. When I don't add timestamp filed or disable it, then no of 404 response code shown as
Kibana-error-1
Now when I added timestamp field then 404 shown only on 3rd page and nowhere else and this way
kibana-error-2
This sort of 404 shown not match with server and even not matching in different visualizations. Please help me to understand where problem lies and how to resolve it.

The problem actually lies in your buckets filtering wherein you have split by rows. If you actually click on the Split Row button you can see there is a Size element which has been specified as 5. If your order is set as descending then, as per this it will give you the top 5 count results for a response as per timestamp.
So currently, the 2nd image which you have attached shows only the top 5 count per timestamp for each corresponding responses.
Hence, you can check for every response such as 404,200,300,301 etc (as received in Image 1), you will be getting only the top 5 count per timestamp for each responses in the 2nd image as you have attached.
Note: Due to top mentioned as 5 even in Image 1 which you have specified, it displays the top 5 responses as per count. There could be more responses as received which you can check by changing size from 5 to 10.

Related

Duplicated values in grafana/influxdb

im currently playing around with grafana and I've found a bug or something that i currently cannot explain (might be my fault, i really a beginner).
My Situation: I've got an InfluxDB DB with some values, its always a Status and a Duration,
but after I query the data in Grafana, I've got two Versions of every Status (hard to put into words), as shown in the picture:
Every Status was duplicated
Sometimes it even splits up the chart and creates two parts of the same status which result together in the correct value:
Every Status field was split in two
Here's the query im using, it already shows these duplicated status here in the influxDB:
Status is duplicated here already
I hope someone of you can help me out, i simply want to get rid of these duplicated status, but i dont know why that happens here and how to handle that

Is there a way to force the output of a Stat panel in Grafana to only show values in days

I'm building a Grafana dashboard with some Stat panels that show average, minimum, and maximum time values (see below) for specific fields in my database. I'm storing the data in seconds and setting the value's units to seconds after which the panel displays the time in weeks, days, hours, etc. For the sake of consistency, I would like everything to be shown in days but I haven't been able to find a way to force units for the output value. If it's possible to do this, could someone please point me to some docs, or something that could show me which configurations to make in my panels?
So far, I've tried (without success):
Configure each panel to use units of days
The result of this was that everything showed up in years, etc.
Configure each panel to create a new field by performing a binary calculation where I converted from seconds to days and then I updated the units to be days
The result was that the values were not changed at all -> instead of showing X days, or whatever, it just showed the value in seconds without the units. I'm not sure what I messed up there, but it didn’t change anything.
I found this link that discusses setting a time range for queries
This didn’t end up being useful for what I was trying to do because it was actually geared towards changing the query to a specific date range rather than the output.
I looked through the transformations documentation, stat panel documentation, and a few other panel documentation pages in an effort to see if there was any information on how to do it but I was unable to find anything on forcing the output value to use a specific unit.
Edit:
So I kept messing around with the dashboard and got a solution that works - i.e. it's a "good-enough" solution (see below) - but, now, I'm curious if it's possible to show the units along with the value without it converting it to some other unit. Does anyone have any ideas about this?
One thing to note is that the data for this image is different than the data for the previous one so I'm expecting an inexact conversion to days.
You can use a custom unit. It is a bit tricky to enter the unit in the UI because of the automatic selection but if you enter i.e. "days" (without the quotes) in the Unit field ans instead of leving the field with tab or mouse click use the scrollbar of the combobox and select the last entry "Custom Unit: days".
Hope it helps. And for the record: I am using Garafana 7.1.4

Google Analytics Core Reporting API query for exits and entrances metrics - entrance values incorrectly exactly the same as exits

I'm using GA's Core Reporting API to create a report that shows the top exit pages alongside some behavioural metrics for each page. The dimension is ga:exitPagePath, and the metrics I want are:
ga:exits
ga:pageviews
ga:entrances
ga:avgTimeOnPage
ga:bounceRate
ga:exitRate
I'm sorting by -ga:exits. I'm not using any filters or segments.
The query appears to work fine, it doesn't return an error - however the entrances values it returns are incorrect and exactly match the exit values for each page. Other queries for ga:entrances without ga:exits give the correct entrance values.
I may have overlooked it but I can't find anywhere in the documentation indicating that these metrics can't be used together. I also tested creating a custom report within the GA interface with these two metrics and found the same result - no error or indication that I can't create a report with both metrics, but entrances incorrectly reported and exactly matching the exit values. I also get the same result in GA's Query Explorer.
Would love to work this out - it seems perfectly logical to me to want to view entrances alongside exits for exit pages :)
A better late than never response.
It makes sense, because all users that have visited your site (entrances) have left (exits).
It gets meaningful when using it along with the pages (ga:pagePath for example).

Yahoo Weather API current conditions

I am trying to get the current weather conditions for a certain location, but for some reason I always get the conditions for a semi-random day/time (more or less past week). I am using this query: https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20%3D%20639660%20AND%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=
Even trying out the example query on their website doesn't work for me. When I click on "Current conditions for San Diego, CA" I get the same, random results. Is there any way to get the current conditions?
I am seeing the same thing. It has to be on Yahoo's side. Unfortunately it looks like their support page is down too. Returned a 404
I've also notice the random ( 1 day up to 2 wks) of old data being transmitted
http://xml.weather.yahoo.com/forecastrss/55364_f.xml It seems to change about every 30 seconds

kendo ui auto complete + virtualization + remove duplicate values

I want to remove the already added items from autocomplete list after server side filtering has been completed. I achieve the same using data method and remove items from the data received from the server. it is working fine when virtualization I off.
As soon as I implemented the virtualization the request for filter data has been started posting on the server in an infinite loop. I suspect that it is happening due to the page size is larger than the number of records in the data as we remove some data from the list and a total number of records is greater than the page size.
Is there any way to achieve the desired behavior?