<?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: DB input configuration setup for oracle database in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169676#M186261</link>
    <description>&lt;P&gt;The settings you posted are from inputs.conf inside the dbx local folder?&lt;BR /&gt;
If so then it is incomplete, can you post the full config for this input from &lt;CODE&gt;splunk\etc\apps\dbx\local\inputs.conf&lt;/CODE&gt;?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2014 01:15:07 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2014-02-28T01:15:07Z</dc:date>
    <item>
      <title>DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169674#M186259</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I recently installed DB Connect and I am setting up a new DB input to index db space used in Oracle. Please see the attached setup. The index has been enabled but I don't see it capturing any data. I am able to run the query in DB query successfully and also in dbx.log I can see successful execution without any errors. Can someone please advise if there are any issues with the config setup.&lt;BR /&gt;
Query used:&lt;BR /&gt;
    select df.tablespace_name "Tablespace", totalusedspace "Used MB",&lt;BR /&gt;
    (df.totalspace - tu.totalusedspace) "Free MB",&lt;BR /&gt;
    df.totalspace "Total MB", round(100 * ( (tu.totalusedspace)/ df.totalspace)) "Pct. Util"&lt;BR /&gt;
    from&lt;BR /&gt;
    (select tablespace_name,&lt;BR /&gt;
    round(sum(bytes) / 1048576) TotalSpace&lt;BR /&gt;
    from dba_data_files &lt;BR /&gt;
    group by tablespace_name) df,&lt;BR /&gt;
    (select round(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name&lt;BR /&gt;
    from dba_segments &lt;BR /&gt;
    group by tablespace_name) tu&lt;BR /&gt;
    where df.tablespace_name = tu.tablespace_name&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169674#M186259</guid>
      <dc:creator>gudli618</dc:creator>
      <dc:date>2020-09-28T16:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169675#M186260</link>
      <description>&lt;P&gt;The page doesn't allow me to attach a screesnshot. Here are the settings:&lt;BR /&gt;
Input Type: Dump&lt;BR /&gt;
Sourcetype: Blank&lt;BR /&gt;
Output Format: Multi-line Key-Value format&lt;BR /&gt;
Timestamp column: Blank&lt;BR /&gt;
Timestamp format: Blank&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2014 23:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169675#M186260</guid>
      <dc:creator>gudli618</dc:creator>
      <dc:date>2014-02-27T23:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169676#M186261</link>
      <description>&lt;P&gt;The settings you posted are from inputs.conf inside the dbx local folder?&lt;BR /&gt;
If so then it is incomplete, can you post the full config for this input from &lt;CODE&gt;splunk\etc\apps\dbx\local\inputs.conf&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 01:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169676#M186261</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-28T01:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169677#M186262</link>
      <description>&lt;P&gt;Thanks for checking. Please see below&lt;BR /&gt;
/apps/splunk/etc/apps/dbx/local &amp;gt; more inputs.conf&lt;BR /&gt;
[script://./bin/jbridge_server.py]&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[batch:///apps/splunk/var/spool/dbmon/*.dbmonevt]&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
move_policy = sinkhole&lt;BR /&gt;
sourcetype = dbmon:spool&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;[dbmon-dump://SPGNYT02/SPGNYT02_dbspace_input]&lt;BR /&gt;
host = spgny-uat2.intranet.barcapint.com&lt;BR /&gt;
index = SPGNYT02&lt;BR /&gt;
output.format = mkv&lt;BR /&gt;
output.timestamp = 1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169677#M186262</guid>
      <dc:creator>gudli618</dc:creator>
      <dc:date>2020-09-28T16:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169678#M186263</link>
      <description>&lt;P&gt;query = select df.tablespace_name "Tablespace", totalusedspace "Used MB",\r\n(df.totalspace - tu.totalusedspace) "Free MB"&lt;BR /&gt;
,\r\ndf.totalspace "Total MB", round(100 * ( (tu.totalusedspace)/ df.totalspace)) "Pct. Util"\r\nfrom\r\n(select tablespac&lt;BR /&gt;
e_name,\r\nround(sum(bytes) / 1048576) TotalSpace\r\nfrom dba_data_files \r\ngroup by tablespace_name) df,\r\n(select roun&lt;BR /&gt;
d(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name\r\nfrom dba_segments \r\ngroup by tablespace_name) tu\r\nwhere d&lt;BR /&gt;
f.tablespace_name = tu.tablespace_name\r\n&lt;BR /&gt;
interval = 1 * * * *&lt;BR /&gt;
table = SPGNYT02_dbspace_input&lt;BR /&gt;
disabled = 0&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169678#M186263</guid>
      <dc:creator>gudli618</dc:creator>
      <dc:date>2020-09-28T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169679#M186264</link>
      <description>&lt;P&gt;Have you checked the splunkd log for this input?&lt;BR /&gt;
I'm thinking you'll probably see that splunkd has timestamp issues.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 02:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169679#M186264</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-28T02:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169680#M186265</link>
      <description>&lt;P&gt;I agree, it is likely that splunkd.log will tell you that it is having problems assigning a timestamp, especially if the format is odd or some or all of the row-level timestamps are more than a few years in the past or a few months in the future.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 18:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169680#M186265</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-02-28T18:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169681#M186266</link>
      <description>&lt;P&gt;Sorry for the late response. splunkd log has no errors neither does dbx.log. Infact on dbx.log I can see dbmonevt files being created and resultcount retrieved.&lt;BR /&gt;
dbx179:INFO:SpoolOutputChannel - Moving temporary file /apps/splunk/var/run/tmp/dbx/mkv_39801.dbmonevt with size=1460 to destination /apps/splunk/var/spool/dbmon/mkv_1393880462148984821.dbmonevt&lt;BR /&gt;
dbx179:INFO:DumpDatabaseMonitor - Database monitor=[dbmon-dump://SPGNYT02/SPGNYT02_dbspace_input] finished with status=true resultCount=10 in duration=2146 ms&lt;/P&gt;

&lt;P&gt;Jus that when I search on the index no data is available. Could you please advise.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169681#M186266</guid>
      <dc:creator>gudli618</dc:creator>
      <dc:date>2020-09-28T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169682#M186267</link>
      <description>&lt;P&gt;Also I changed the configs a bit and moved to template based output. Here is the new config:&lt;/P&gt;

&lt;P&gt;[script://./bin/jbridge_server.py]&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[batch:///apps/splunk/var/spool/dbmon/*.dbmonevt]&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
move_policy = sinkhole&lt;BR /&gt;
sourcetype = dbmon:spool&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;[dbmon-dump://SPGNYT02/SPGNYT02_dbspace_input]&lt;BR /&gt;
host = spgny-uat2.intranet.barcapint.com&lt;BR /&gt;
index = gudlitest&lt;BR /&gt;
output.format = template&lt;BR /&gt;
output.timestamp = 1&lt;/P&gt;

&lt;P&gt;interval = 1 * * * *&lt;BR /&gt;
table = SPGNYT02_dbspace_input&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
output.template = Tablespace UsedMB FreeMB Util% from $HOST$ at $timestamp$&lt;BR /&gt;
sourcetype = dbmon:mkv&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169682#M186267</guid>
      <dc:creator>gudli618</dc:creator>
      <dc:date>2020-09-28T16:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169683#M186268</link>
      <description>&lt;P&gt;query = select df.tablespace_name "Tablespace", totalusedspace "UsedMB",\r\n(df.totalspace - tu.totalusedspace) "FreeMB",\&lt;BR /&gt;
r\ndf.totalspace "TotalMB", round(100 * ( (tu.totalusedspace)/ df.totalspace)) "Util"\r\nfrom\r\n(select tablespace_name,\&lt;BR /&gt;
r\nround(sum(bytes) / 1048576) TotalSpace\r\nfrom dba_data_files \r\ngroup by tablespace_name) df,\r\n(select round(sum(by&lt;BR /&gt;
tes)/(1024*1024)) totalusedspace, tablespace_name\r\nfrom dba_segments \r\ngroup by tablespace_name) tu\r\nwhere df.tables&lt;BR /&gt;
pace_name = tu.tablespace_name\r\n\r\n&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:01:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169683#M186268</guid>
      <dc:creator>gudli618</dc:creator>
      <dc:date>2020-09-28T16:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: DB input configuration setup for oracle database</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169684#M186269</link>
      <description>&lt;P&gt;From what you have posted, it looks like you may have line breaks in your query for readability. Make sure that your query is on a single, unbroken line in your inputs.conf file.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 02:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DB-input-configuration-setup-for-oracle-database/m-p/169684#M186269</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2014-06-13T02:31:31Z</dc:date>
    </item>
  </channel>
</rss>

