<?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 how to save oracle db query results into a CSV format and use this CSV file to index into SPLUNK to generate dashboards in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-save-oracle-db-query-results-into-a-CSV-format-and-use/m-p/194368#M20053</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;

&lt;P&gt;I have integrated my oracle DB with SPLUNK using SPLUNK DB connect &lt;BR /&gt;
I am able to view the tables and query them successfully but i have the following issue&lt;BR /&gt;
Issue:&lt;BR /&gt;
I am using the following query &lt;BR /&gt;
SELECT Volume,SERVER_ID,SERVICE_NAME,To_char(END_TIME-START_TIME,'HH24:MI:SS.FF') AS process_time from  xxx &lt;BR /&gt;
i want to trigger this query for every 30 mins and save the results into a .csv and index this .csv to splunk to generate the dashboards&lt;BR /&gt;
can somebody please help as i have to use this live in my project to show up graphs to the client&lt;/P&gt;

&lt;P&gt;Thanks ,&lt;BR /&gt;
Deepthi &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:57:21 GMT</pubDate>
    <dc:creator>deepthi5</dc:creator>
    <dc:date>2020-09-28T19:57:21Z</dc:date>
    <item>
      <title>how to save oracle db query results into a CSV format and use this CSV file to index into SPLUNK to generate dashboards</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-save-oracle-db-query-results-into-a-CSV-format-and-use/m-p/194368#M20053</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;

&lt;P&gt;I have integrated my oracle DB with SPLUNK using SPLUNK DB connect &lt;BR /&gt;
I am able to view the tables and query them successfully but i have the following issue&lt;BR /&gt;
Issue:&lt;BR /&gt;
I am using the following query &lt;BR /&gt;
SELECT Volume,SERVER_ID,SERVICE_NAME,To_char(END_TIME-START_TIME,'HH24:MI:SS.FF') AS process_time from  xxx &lt;BR /&gt;
i want to trigger this query for every 30 mins and save the results into a .csv and index this .csv to splunk to generate the dashboards&lt;BR /&gt;
can somebody please help as i have to use this live in my project to show up graphs to the client&lt;/P&gt;

&lt;P&gt;Thanks ,&lt;BR /&gt;
Deepthi &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-save-oracle-db-query-results-into-a-CSV-format-and-use/m-p/194368#M20053</guid>
      <dc:creator>deepthi5</dc:creator>
      <dc:date>2020-09-28T19:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to save oracle db query results into a CSV format and use this CSV file to index into SPLUNK to generate dashboards</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-save-oracle-db-query-results-into-a-CSV-format-and-use/m-p/194369#M20054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Rather than storing the results as CSV, you can add the data directly in the splunk index by using DBConnects DBMonitor configuration. You can use the above query along with a rising_column (which is used to identify what all records are fetched).&lt;/P&gt;

&lt;P&gt;If not, you can use &lt;STRONG&gt;outputlookup&lt;/STRONG&gt; command to create the CSV file as a lookup. You can schedule a search (which will run every 30 mins) by using DBConnect command &lt;STRONG&gt;dbquery&lt;/STRONG&gt; and &lt;STRONG&gt;outputlookup&lt;/STRONG&gt; command.&lt;/P&gt;

&lt;P&gt;Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "SELECT Volume,SERVER_ID,SERVICE_NAME,To_char(END_TIME-START_TIME,'HH24:MI:SS.FF') AS process_time from xxx" | outputlookup xyz.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use this lookup for your dashboard.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 12:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-save-oracle-db-query-results-into-a-CSV-format-and-use/m-p/194369#M20054</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-05-13T12:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to save oracle db query results into a CSV format and use this CSV file to index into SPLUNK to generate dashboards</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-save-oracle-db-query-results-into-a-CSV-format-and-use/m-p/194370#M20055</link>
      <description>&lt;P&gt;Thanks for that  it works just adding to your command there is also a command call outputcsv and outputtext to get the output &lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 11:51:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-save-oracle-db-query-results-into-a-CSV-format-and-use/m-p/194370#M20055</guid>
      <dc:creator>deepthi5</dc:creator>
      <dc:date>2015-05-14T11:51:46Z</dc:date>
    </item>
  </channel>
</rss>

