All Apps and Add-ons

How to retrieve list of foreign tables in splunk db connect?

vanheer
Explorer

Hi,

I'm trying to query tables from postgres database. All tables there are under Foreign tables and nothing under tables. when I use db connect it get the schema name but it couldn't get the list of tables.

How can I access the foreign tables using db connect?

Labels (2)
0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust

Try running the below query in the DB connect:

 

select * from information_schema.foreign_tables

OR 

select * from information_schema.tables

 

View solution in original post

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Try running the below query in the DB connect:

 

select * from information_schema.foreign_tables

OR 

select * from information_schema.tables

 

0 Karma

vanheer
Explorer

Thanks @VatsalJagani it works fine.

Actually it was a stupid question, but it was going on the opposite direction all the time and couldn't think good 🙂

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...