Dashboards & Visualizations

gaps in dashboard graph

webantsug
Explorer

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

Tags (2)
0 Karma

woodcock
Esteemed Legend

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)
0 Karma

webantsug
Explorer

Good morning,

Looks like some delays but values are there. :S

0 Karma

woodcock
Esteemed Legend

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.

0 Karma

webantsug
Explorer

Okay, the graph looks more nice. But what about the gaps???

0 Karma

woodcock
Esteemed Legend

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?

0 Karma

woodcock
Esteemed Legend

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?

0 Karma

webantsug
Explorer

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 🙂

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...