Configure Query Log Ingestion

Alation Cloud Service Applies to Alation Cloud Service instances of Alation

Customer Managed Applies to customer-managed instances of Alation

Core Connector Core connectors are included with all Alation platform tiers (subject to each tier’s connector limits) and are fully supported by Alation.

On the Query Log Ingestion tab of the Settings page, specify the Query Log Ingestion Query. This is a SQL query, run directly against the data source over the same JDBC connection used for metadata extraction, that returns the query history rows to ingest. Use the placeholders STARTTIME and ENDTIME in the query text; the connector substitutes these with the extraction window’s start and end timestamps before running the query. If you leave this field empty, the connector skips query log ingestion for that run and raises no error.

The connector does not read any audit log. You must identify the correct query-history source or table on your Hive deployment and write a query against it. Validate the query manually, for example from the Compose tab, before relying on scheduled query log ingestion.

Run Automated and Manual QLI

You can either perform QLI manually on demand or enable automated QLI:

  1. To perform manual QLI, under the Automated and Manual Query Log Ingestion section of the Query Log Ingestion tab, ensure that the Enable Automated Query Log Ingestion toggle is disabled.

    Note

    Metadata extraction must be completed first before running QLI.

  2. Click Preview to get a sample of the query history data to be ingested.

  3. Click the Import button to perform QLI on demand.

  4. To schedule QLI, enable the Enable Automated Query Log Ingestion toggle.

  5. Set a schedule under Automated Query Log Ingestion Time by specifying values in the week, day, and time fields. The next QLI job will run on the schedule you have specified.

    Note

    The hourly schedule for automated QLI is not supported.