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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...