<?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: Splunk DB Connect: Index data running dbxquery command in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/533990#M64499</link>
    <description>&lt;P&gt;Maybe using as bellow:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery connection=&amp;lt;YOUR_CONNECTION&amp;gt; query="&amp;lt;YOUR_QUERY&amp;gt;" | collect index=&amp;lt;YOUR_INDEX_NAME&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 23 Dec 2020 19:52:37 GMT</pubDate>
    <dc:creator>francisco_mota</dc:creator>
    <dc:date>2020-12-23T19:52:37Z</dc:date>
    <item>
      <title>Splunk DB Connect: Index data running dbxquery command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329854#M39507</link>
      <description>&lt;P&gt;Hi to all, i'd like to know if it's possible index data running dbx command from a sdk python script.&lt;BR /&gt;
I'm not finding anything on internet. if i manually run &lt;CODE&gt;| dbxquery ...&lt;/CODE&gt; data are not indexed, they are indexed just if the query is scheduled via Splunk UI.&lt;BR /&gt;
Is there a different way? Maybe some rest api? Or maybe running one of the mi script (mi_input.py?) after command dbxquery?&lt;/P&gt;

&lt;P&gt;Thanks and regards.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 18:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329854#M39507</guid>
      <dc:creator>maurelio79</dc:creator>
      <dc:date>2017-10-30T18:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Index data running dbxquery command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329855#M39508</link>
      <description>&lt;P&gt;Did you read through &lt;A href="https://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Createandmanagedatabaseinputs"&gt;the documentation&lt;/A&gt;? Database Inputs are used to index data from a database. The &lt;A href="https://docs.splunk.com/Documentation/DBX/3.1.1/DeployDBX/Commands"&gt;dbxquery search command&lt;/A&gt; is used to execute SQL statements or stored procedures.&lt;/P&gt;

&lt;P&gt;What is your requirement that you need to execute it from a Python script? &lt;BR /&gt;
I guess it would be possible to execute a query with dbxquery and then use &lt;STRONG&gt;| collect&lt;/STRONG&gt; to store the results in an index, but it would help to better understand your use case.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 19:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329855#M39508</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-10-30T19:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Index data running dbxquery command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329856#M39509</link>
      <description>&lt;P&gt;Hi, first of all for for answer.&lt;BR /&gt;
Basically i was asked to give to the customer the possibility to change the scheduled time of db input via beta48 batch on mainframe.&lt;BR /&gt;
For example: when new data are inserted on DB2, the user schedule a job that change the scheduled time of the DB input, for this reason i was thinking about python.&lt;/P&gt;

&lt;P&gt;Thanks and regards.&lt;/P&gt;

&lt;P&gt;P.S.&lt;BR /&gt;
Basically i need to run a DB input on demand, not scheduled.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 20:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329856#M39509</guid>
      <dc:creator>maurelio79</dc:creator>
      <dc:date>2017-10-30T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Index data running dbxquery command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329857#M39510</link>
      <description>&lt;P&gt;Tested!&lt;BR /&gt;
from the command line, &lt;STRONG&gt;curl command&lt;/STRONG&gt; calling saved search that includes a &lt;STRONG&gt;|collect index=yourIndexHere&lt;/STRONG&gt; does trigger a search that gets data from DB and index the outcome within &lt;EM&gt;yourIndexHere&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 08:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/329857#M39510</guid>
      <dc:creator>garias_splunk</dc:creator>
      <dc:date>2019-06-21T08:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Index data running dbxquery command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/533990#M64499</link>
      <description>&lt;P&gt;Maybe using as bellow:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery connection=&amp;lt;YOUR_CONNECTION&amp;gt; query="&amp;lt;YOUR_QUERY&amp;gt;" | collect index=&amp;lt;YOUR_INDEX_NAME&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Dec 2020 19:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Index-data-running-dbxquery-command/m-p/533990#M64499</guid>
      <dc:creator>francisco_mota</dc:creator>
      <dc:date>2020-12-23T19:52:37Z</dc:date>
    </item>
  </channel>
</rss>

