All Apps and Add-ons

Does Splunk DBConnect's checkpoint file rotate?

msellery1619
New Member

I understand that in DBConnect 3, the checkpoint file that tracks the Rising Column value is now stored in files under /opt/splunk/var/lib/splunk/modinputs/server/splunk_app_db_connect.

However, do these files rotate? They will get quite large after just a few months. Isn't the last timestamp the only timestamp that should matter in this file? Why is every timestamp stored? Thanks!

Tags (1)
0 Karma
1 Solution

jcoates
Communicator

the checkpoint files do rotate -- I don't recall the size and time limits for individual files, but there's a maximum of 100MB for the entire folder.

View solution in original post

jcoates
Communicator

the checkpoint files do rotate -- I don't recall the size and time limits for individual files, but there's a maximum of 100MB for the entire folder.

msellery1619
New Member

Thanks! I won't be in a position to test this with my own eyes for a while, but I'll take this at face value and consider it answered. Do you happen to know if the current file is always named the exact same file name? Thanks!

0 Karma

jcoates
Communicator

yes, it's based on the input name. It'll always be the same file, the rotation is just to drop old lines and add new ones. It doesn't gzip off old copies.

0 Karma

harsmarvania57
Ultra Champion

@jcoates is right, I was wrong. While looking at db_inputs.conf.spec the configuration is available to setup checkpoint file size but I never tested this.

max_single_checkpoint_file_size = <integer>
# optional
# Max checkpoint file size before archiving checkpoint file in bytes.  Default is 10MB, max is 100MB.
0 Karma

bschaap
Path Finder

I'm unable to get DB Connect to honor this setting and it's not rotating files larger than the max file size. I have tried using both the default size and the specifying the max size but neither work.

I am interested in whether this works or does not work for others.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...