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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...