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!

Unlock New Opportunities with Splunk Education: Explore Our Latest Courses!

At Splunk Education, we’re dedicated to providing top-tier learning experiences that cater to every skill ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...