5.11. Local File Connector

The local file connector allows querying data stored on the localfile system of each worker.

Configuration

To configure the local file connector, create a catalog properties fileunder etc/catalog named, for example, localfile.properties with the following contents:

  1. connector.name=localfile

Configuration Properties

Property NameDescription
presto-logs.http-request-log.locationDirectory or file where HTTP request logs are written
presto-logs.http-request-log.patternIf the log location is a directory this glob is usedto match file names in the directory

Local File Connector Schemas and Tables

The local file connector provides a single schema named logs.You can see all the available tables by running SHOW TABLES:

  1. SHOW TABLES FROM localfile.logs;

http_request_log

This table contains the HTTP request logs from each node on the cluster.