Logs list attributes
The Logs List Attributes tool by PostHog allows users to efficiently discover and filter available log and resource attributes within their project. It helps to identify which attributes can be used when querying logs, enhancing log analysis and debugging processes.
Features
- Supports filtering attributes by type: 'log' or 'resource'.
- Provides search functionality to find specific attribute names quickly.
- Allows setting limits on the number of results returned (1-100).
- Includes pagination support via offset parameter for flexible data retrieval.
- Offers a clear schema and parameters for precise and controlled attribute listing.
Benefits
- Improves log query efficiency by identifying available filterable attributes.
- Enhances troubleshooting by quickly locating relevant log or resource data.
- Saves time with search and pagination capabilities to handle large datasets.
- Supports better project logging management through clear attribute categorization.
- Enables more informed analytics and monitoring by understanding log data structure.
Description
List available log attributes in the project. Use this to discover what attributes you can filter on when querying logs. Supports filtering by attribute type (log or resource) and searching by attribute name.
Parameters
4 parameters
| Name | Type | Description |
|---|---|---|
| search | string | Search filter for attribute names |
| attributeType | enum | Type of attributes to list: "log" for log attributes, "resource" for resource attributes (default: log) |
| limit | integer | Maximum number of results (1-100, default: 100) |
| offset | integer | Offset for pagination (default: 0) |