Source configuration
Sources define how to access and interpret data from external systems. To create a source, you reference an existing Connection and add data-specific configuration on top.
Creating a source
Section titled “Creating a source”The source creation wizard consists of five steps:
Step 1: Connection
Section titled “Step 1: Connection”Choose an existing connection from the dropdown list. Only connections you have connection_use permission for will appear.
For ClickHouse connections, specify which database and table to use:
database– Database nametable– Table name
For Docker connections, no additional configuration is needed.
Step 2: Fields setup
Section titled “Step 2: Fields setup”Add and configure fields for your source.
Click “Autoload fields” to automatically load field definitions from the database schema (ClickHouse only). This is the recommended approach as it ensures field types are correct.
For manual field configuration or Docker sources, click “Add Field” to add fields one by one.
Step 3: Field mapping
Section titled “Step 3: Field mapping”Configure which fields have special roles:
Time field– Used for filtering logs by time range. Should match your ClickHouse table’s partition key for optimal performance (required)Date field– Additional date field if your schema separates date and timeSeverity field– Used to apply different colors to message bars based on severity and as a default field for graph groupingDefault chosen fields– Fields shown by default in the results table (required)
Step 4: Naming
Section titled “Step 4: Naming”slug– A unique slug identifier. Cannot be changed after creation (used as a human-readable source identifier).name– Human-readable source name (e.g., “Production App Logs”, “Staging API Logs”).description– Optional description explaining what data this source provides.
Step 5: Review and create
Section titled “Step 5: Review and create”Review all your configuration and click “Create” (or “Save” when editing) to finalize the source.
Field properties
Section titled “Field properties”Each field has several properties:
Name– Field name in the database tableDisplay Name– Field name shown in the data explorerType– The field type, based on the ClickHouse data type. If the schema is loaded automatically, this type is derived directly from ClickHouse. When adding fields manually, users can select a type from a predefined list or enter it manually. Currently, the type is primarily used to determine which fields can be selected as theTime field(only fields containingdatetimeare eligible).Treat as JSON String– A boolean property that defines whether this field should be treated as a JSON object in the result. If set totrue, the server will convert the string into a JSON object. If set tofalse, the value will remain a string and will be displayed as such in the UI.Autocomplete– A boolean property that defines whether this field should use autocompletion in the query input.Suggest– A boolean property that defines whether this field should be suggested in the query input.Values– A comma-separated list of predefined field values. This field is used only for theenumtype. It allows specifying a fixed set of values for a particular field, ensuring that only valid options are used. This is particularly useful forenumtypes, as it helps prevent sending requests with incorrect data.
Editing sources
Section titled “Editing sources”To edit a source, navigate to its detail page and click “Edit”.
Connection kind restriction: When editing a source, you cannot change to a connection of a different kind. The connection selector will only show connections matching the source’s current connection kind (ClickHouse or Docker).
For example:
- If a source uses a ClickHouse connection, you can only select other ClickHouse connections
- If a source uses a Docker connection, you can only select other Docker connections
This ensures that the source configuration remains consistent with the connection type.
Viewing source details
Section titled “Viewing source details”The source detail page displays:
-
Source information
- Kind (with icon), slug, name, description
- Connection information (name, link to connection detail page)
- Database and table (for ClickHouse sources)
-
Field configuration
- Complete list of configured fields
- Time field and severity field settings
-
Access control
- List of users and groups with access to this source
- Their assigned roles (Owner, Editor, Viewer, User, Raw Query User)
Source permissions
Section titled “Source permissions”Sources use Role-Based Access Control (RBAC) independent from their underlying connection. See Source Roles for details.
Permission requirements
Section titled “Permission requirements”| What You Want to Do | Required Permissions |
|---|---|
| View source list | source_read on source |
| Create a new source | global_create_source AND connection_use on connection |
| Edit source configuration | source_edit on source |
| Query logs from source | source_read AND source_use on source |
| Execute raw SQL queries | source_raw_query on source |
| Delete source | source_delete on source |
| Grant access to others | source_grant on source |
Deleting sources
Section titled “Deleting sources”To delete a source, navigate to its detail page and click “Delete”.
Best practices
Section titled “Best practices”-
Naming
- Use descriptive names indicating data type and environment
- Examples: “Production App Logs”, “Staging API Logs”, “Audit Trail”
-
Connection selection
- Reuse existing connections when accessing the same system
- Create separate sources for different databases/tables on the same connection
-
Field configuration
- Only expose fields needed for log analysis
- Use “Autoload fields” when possible to ensure accuracy
- Use the time/date field that matches your ClickHouse table’s partition key for optimal query performance
- Configure severity field if your logs have severity/level information
-
Access control
- Grant minimum required permissions
- Use
source_userole for team members who need to query logs - Restrict
source_raw_queryto trusted users only
Related concepts
Section titled “Related concepts”- Connection configuration – How to create and manage connections
- Source – Technical details about sources
- Authentication & Authorization – Permission model details