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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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