<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I run dbinput on demand instead of schedule? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363951#M43944</link>
    <description>&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;So how a dbxqury from cloud SH will get data from SQL server on local network?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 06:16:56 GMT</pubDate>
    <dc:creator>santosh_sshanbh</dc:creator>
    <dc:date>2018-04-27T06:16:56Z</dc:date>
    <item>
      <title>Can I run dbinput on demand instead of schedule?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363949#M43942</link>
      <description>&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 14:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363949#M43942</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-04-26T14:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run dbinput on demand instead of schedule?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363950#M43943</link>
      <description>&lt;P&gt;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) &lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 18:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363950#M43943</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-26T18:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run dbinput on demand instead of schedule?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363951#M43944</link>
      <description>&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;So how a dbxqury from cloud SH will get data from SQL server on local network?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 06:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363951#M43944</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-04-27T06:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run dbinput on demand instead of schedule?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363952#M43945</link>
      <description>&lt;P&gt;Create a dbinput or clone existing one.Disable it.&lt;/P&gt;

&lt;P&gt;Enable if it demands.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 09:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363952#M43945</guid>
      <dc:creator>ansif</dc:creator>
      <dc:date>2018-05-03T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I run dbinput on demand instead of schedule?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363953#M43946</link>
      <description>&lt;P&gt;I think @ansif's answer is the way to do this.&lt;/P&gt;

&lt;P&gt;Create a clone of that db input (or just a new one that matches).  &lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;Disable that input until you need it.&lt;/P&gt;

&lt;P&gt;Then when you need an on demand run, just enable that db input, let it run, then disable it again.&lt;/P&gt;

&lt;P&gt;Give that a try, and if it works for you, could you plase mark ansif's answer accepted?&lt;/P&gt;

&lt;P&gt;Happy Splunking,&lt;BR /&gt;
Rich&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 12:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-run-dbinput-on-demand-instead-of-schedule/m-p/363953#M43946</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-05-05T12:16:22Z</dc:date>
    </item>
  </channel>
</rss>

