<?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_314 does not create index in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458555#M6084</link>
    <description>&lt;P&gt;Your question consists of multiple queries. Will try one by one&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;It is good practice for Add-on's NOT to create index of its own. This is because lot of organisation have naming standards for indexes and permissions etc. Also in clustered environment, your DBconnect installed server is not normally your indexer. So best thing for you to do is to create an app "MY_INDEXES_APP" and create all indexes.conf with your company standards and retention policies etc.  Then collect database data using DBconnect using a Heavy Forwarder and just redirect to your specific index&lt;/LI&gt;
&lt;LI&gt;postgressql sourcetype =&amp;gt; The only close addon I could find is &lt;A href="https://splunkbase.splunk.com/app/1732/" target="_blank"&gt;https://splunkbase.splunk.com/app/1732/&lt;/A&gt; . Please download and see the sourcetype within it and check if the extractions fit your purpose. Else, please create a sourcetype of your own and extract fields accordingly. Please check how you build &lt;A href="http://dev.splunk.com/view/SP-CAAAFD7" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAFD7&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;It might be good idea to check if you are retrieving data from the database. Run a simple simulation in DBconnect GUI to see it can fetch data&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:33:30 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2020-09-30T00:33:30Z</dc:date>
    <item>
      <title>splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458554#M6083</link>
      <description>&lt;P&gt;Hi, I  am running splunk 7.2.0 single server instance running on RHEL 6.8.  I wanted to get data from one of our postgresql DB, so installed splunk-db-connect_314 on this splunk single server. During configuration I was able to see the data from the sql query and I did not see any error. However, for some reason index has not been created for this data. Also, what sourcetype need to use for postgressql DB query data?  During configuration it gives few choices but none seems to be appropriate. So, I created new sourcetype but it did help either getting data into splunk. &lt;BR /&gt;
Any help will be appreciated. &lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458554#M6083</guid>
      <dc:creator>patelmc</dc:creator>
      <dc:date>2019-05-13T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458555#M6084</link>
      <description>&lt;P&gt;Your question consists of multiple queries. Will try one by one&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;It is good practice for Add-on's NOT to create index of its own. This is because lot of organisation have naming standards for indexes and permissions etc. Also in clustered environment, your DBconnect installed server is not normally your indexer. So best thing for you to do is to create an app "MY_INDEXES_APP" and create all indexes.conf with your company standards and retention policies etc.  Then collect database data using DBconnect using a Heavy Forwarder and just redirect to your specific index&lt;/LI&gt;
&lt;LI&gt;postgressql sourcetype =&amp;gt; The only close addon I could find is &lt;A href="https://splunkbase.splunk.com/app/1732/" target="_blank"&gt;https://splunkbase.splunk.com/app/1732/&lt;/A&gt; . Please download and see the sourcetype within it and check if the extractions fit your purpose. Else, please create a sourcetype of your own and extract fields accordingly. Please check how you build &lt;A href="http://dev.splunk.com/view/SP-CAAAFD7" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAFD7&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;It might be good idea to check if you are retrieving data from the database. Run a simple simulation in DBconnect GUI to see it can fetch data&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458555#M6084</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-30T00:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458556#M6085</link>
      <description>&lt;P&gt;Hi Koshyk,&lt;BR /&gt;
I followed documentation to installed db connect on single server. This is a test environment and we are using only one splunk server to test. I provided index name during configuration and I believe it should have created the index with that name. when I run query from DBConnect GUI, I get the data from DB. &lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458556#M6085</guid>
      <dc:creator>patelmc</dc:creator>
      <dc:date>2019-05-13T18:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458557#M6086</link>
      <description>&lt;P&gt;when I run dbxquery I get the data from DB. &lt;/P&gt;

&lt;P&gt;| dbxquery query="SELECT * FROM \"event\".\"public\".\"all_events\" WHERE state='CLOSED' AND time_received &amp;gt; ? ORDER BY  time_received DESC" connection="XXX_TEST_POST_DB_Connection" maxrows=1000 params="\"2018-01-01 00:00:00.000\"" paramstype="\"93\"" timeout=30&lt;/P&gt;

&lt;P&gt;But when I look for index it does not exist and search using that index does not return any rows. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458557#M6086</guid>
      <dc:creator>patelmc</dc:creator>
      <dc:date>2020-09-30T00:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458558#M6087</link>
      <description>&lt;P&gt;what's the index name you using?&lt;/P&gt;

&lt;P&gt;please do a &lt;BR /&gt;
/opt/splunk/bin/splunk cmd btool list indexes --debug  &amp;gt; /tmp/indexes.btool.txt&lt;/P&gt;

&lt;P&gt;Please select the stanza for your index and paste it here&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 20:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458558#M6087</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-13T20:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458559#M6088</link>
      <description>&lt;P&gt;I ran /opt/splunk/bin/splunk btool indexes list with and without --debug option but I do not see stanza for the index I used during DB connect config. &lt;BR /&gt;
The config file its using is /opt/splunk/etc/system/default/indexes.conf&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 20:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458559#M6088</guid>
      <dc:creator>patelmc</dc:creator>
      <dc:date>2019-05-13T20:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458560#M6089</link>
      <description>&lt;P&gt;I created index manually and used that index name in metadata and now I see data under that index. &lt;/P&gt;

&lt;P&gt;However, I still have a question about which sourcetype to use for postgresql DB?&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 20:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458560#M6089</guid>
      <dc:creator>patelmc</dc:creator>
      <dc:date>2019-05-13T20:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458561#M6090</link>
      <description>&lt;P&gt;(you should never Ever amend /opt/splunk/etc/system/default configs under ANY circumstances)&lt;BR /&gt;
Since you can't see, it means the index is not present&lt;/P&gt;

&lt;P&gt;Please create an app and create indexes.conf &lt;BR /&gt;
MY_database_index/local/indexes.conf&lt;/P&gt;

&lt;P&gt;Paste below entries into it  &amp;amp; Restart your server  (assuming your index is my_database_index)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [my_database_index]
 datatype = metric
  homePath   = volume:home/my_database_index/db
  coldPath = volume:cold/my_database_index/colddb
  thawedPath = volume:cold/my_database_index/thaweddb
  maxTotalDataSizeMB = 87600
  # 1 years x 365 days * 24 hrs * 60mins * 60secs days total retention
  frozenTimePeriodInSecs = 31536000
  repFactor = auto
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ensure your DBconnect put this into this index&lt;BR /&gt;
and RESTART your server. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458561#M6090</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-30T00:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458562#M6091</link>
      <description>&lt;P&gt;I thought I had posted the answer in the main reply, &lt;/P&gt;

&lt;P&gt;postgressql sourcetype =&amp;gt; The only close addon I could find is &lt;A href="https://splunkbase.splunk.com/app/1732/"&gt;https://splunkbase.splunk.com/app/1732/&lt;/A&gt; . Please download and see the sourcetype within it and check if the extractions fit your purpose. Else, please create a sourcetype of your own and extract fields accordingly. Please check how you build &lt;A href="http://dev.splunk.com/view/SP-CAAAFD7"&gt;http://dev.splunk.com/view/SP-CAAAFD7&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 09:50:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458562#M6091</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-14T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-db-connect_314 does not create index</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458563#M6092</link>
      <description>&lt;P&gt;This addon is to monitor postgresql DB which includes log files. The DB connect is actually getting business data from DB tables so this addon would not help. &lt;BR /&gt;
I created a new sourcetype and it seems to be working now. &lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 12:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/splunk-db-connect-314-does-not-create-index/m-p/458563#M6092</guid>
      <dc:creator>patelmc</dc:creator>
      <dc:date>2019-05-14T12:56:37Z</dc:date>
    </item>
  </channel>
</rss>

