Dear all,
I have been creating a dashboard graph, displaying a database calculation as block diagram.
Basically on my DB server runs a script every 15 minutes, checking some stats and writes the values to a log file.
That log file is indexed and provides the data for my diagram. 🙂
So far so good, this ran fine for several months now. Today morning, I noticed that there are free spaces in my diagram, so no entries, which is pretty odd. Meanwhile I checked the connectivity and saw that all data is there when I just query that log file. So the values are existent but Splunk will not draw the diagram????
Would somebody please make a suggestion what that can be and how I can debug it?
Right now I have no clue...
Thanks so much
Best regards
First of all, I would use a search like this instead (it will make a much nicer X-axis) and may change whether you see any gaps or not.
source="/opt/webants-dns/logs/ddnscount.log" | timechart span=15m avg(UserCount)
Good morning,
Looks like some delays but values are there. :S
Show us what the graphs look like and what your props.conf
is (i.e. how are you doing your timestamping
). We are getting closer.
Okay, the graph looks more nice. But what about the gaps???
Do this search for the last 24 hours to see the latency, number and alignment of events:
source="/opt/webants-dns/logs/ddnscount.log" | eval lagSecs=(_indextime - _time) | timechart span=15m avg(UserCount) count AS ThisShouldAlwaysHaveValueEqualToOne avg(lagSecs)
My guess is that the events are there, but they are mis-aligned so they are falling into the wrong interval. Do these lines look very flat?
Without more details (the search would help), I would guess clock drift is causing some of your intervals to have extra events and some to have none. Are all.of your servers (especially Indexers and this forwarder) using NTP
to stay true and in sync?
Hi there,
thanks for your reply.
My search query is this one: source="/opt/webants-dns/logs/ddnscount.log" | stats avg(UserCount) by _time
And I verified that my NTP config is working fine 🙂