All Apps and Add-ons

Can I run dbinput on demand instead of schedule?

santosh_sshanbh
Path Finder

I have a SH in Splunk cloud environment and HF and UF in local network. There are dbinputs configured on HF to run on a daily basis. Sometimes I want to fetch the realtime data from SQL server when a dashboard is opened. So is there any way by which I can trigger the dbinput from SH in cloud to pull the recent data from SQL server?

Tags (2)
0 Karma

ansif
Motivator

Create a dbinput or clone existing one.Disable it.

Enable if it demands.

0 Karma

Richfez
SplunkTrust
SplunkTrust

I think @ansif's answer is the way to do this.

Create a clone of that db input (or just a new one that matches).

I believe a dbinput will only run when you enable it if it's set to a "number of seconds" schedule, so if yours is set to a cron or specific schedule (like "every day at midnight") change it to something like 1000.

Disable that input until you need it.

Then when you need an on demand run, just enable that db input, let it run, then disable it again.

Give that a try, and if it works for you, could you plase mark ansif's answer accepted?

Happy Splunking,
Rich

0 Karma

somesoni2
Revered Legend

You can run the same query you run as part of dbinput in dbxquery to see the realtime data (it won't be saved on the index but can be viewed on the dashboard. You can use collect command to actually save it to an index as well)

0 Karma

santosh_sshanbh
Path Finder

Thanks for your response. However, in my case the SH and Indexers are on Splunk cloud where as SQL database where UF is installed and HF where dbconnect app is installed are on local network behind firewall. HF is ending data to IX on Splunk cloud.

So how a dbxqury from cloud SH will get data from SQL server on local network?

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, ...