SVL_S3LOG - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Use the SVL_S3LOG view to get details about Amazon Redshift Spectrum queries at the segment and node slice level.

SVL_S3LOG is visible to all users. Superusers can see all rows; regular users can see only their own data. For more information, see Visibility of data in system tables and views.


SVL_S3LOG only contains queries run on main clusters. It doesn't contain queries run on concurrency scaling clusters. To access queries run on both main and concurrency scaling clusters, we recommend that you use the SYS monitoring view SYS_EXTERNAL_QUERY_DETAIL . The data in the SYS monitoring view is formatted to be easier to use and understand.

Table columns

Column name Data type Description
pid integer The process ID.
query integer The query ID.
segment integer The segment number. A query consists of multiple segments, and each segment consists of one or more steps.
step integer The query step that ran.
node integer The node number.
slice integer The data slice that a particular segment ran against.
eventtime timestamp Time in UTC that the step started executing.
message text Message for the log entry.

Sample query

The following example queries SVL_S3LOG for the last query that ran.

select * from svl_s3log where query = pg_last_query_id() order by query,segment,slice;