Getting Data In

DB Connect and Lookup Caching

cramasta
Builder

Hi,
Im looking into using the DB Connect app to provide a db lookup source. I noticed that there are settings in the java.conf file that sound like they may cache the values into memory that are being provided from the database. Can someone provide more details about these settings and how they affect DB Connect. Does it work while using search head pooling?

java.conf

[dblookup]

cache = true|false
* When set to true, database lookup definitions are cached in memory

cache.size = <n>
* The cache size for database lookups definitions (number of entries)

cache.invalidation.timeout = <relative_time_expression>
* The amount of the before a database lookup definition is considered invalid

* and removed from the cache.

wbsplunk
New Member

Ran into this same issue but using DBX does cache results of your db query... sometimes. We have lots of savedsearches that are populated into our dashboards using DBX. Some panels get cached while others don't. To me, it's a mystery why this is as if you look at the searchid (SID) in your dispatch directory, you definitely see the file "results.csv.gz". The existence of that file should make Splunk load the cached results of that particular job before it's next scheduled run-time.

So, what we've done to get all our panels populated with cached results is to run 'loadjob' of the scheduled savedsearch name and shove that as a panel into our dashboard. Now, my guys are happy as they don't have to wait for 20+ mins for data to get populated while accessing their dashboard.

We're using Splunk 6.0 with DBX v1.1.3.

0 Karma

d1rtym0nk3y
Explorer

i read that config file as saying that the lookup definitions are cached, not the results of a lookup

0 Karma

richgalloway
SplunkTrust
SplunkTrust

According to the DBX manual (http://docs.splunk.com/Documentation/DBX/1.1.1/DeployDBX/Otherdeploymentconsiderations), "Splunk will not cache the results between invocations of the lookup."

---
If this reply helps you, Karma would be appreciated.
0 Karma

cramasta
Builder

Yeah I saw that mentioned in the docs however the java.conf file is hinting otherwise.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...