Tool

Logs query

Logs-Query by Posthog is a powerful tool designed to search and filter logs within your project efficiently. It enables detailed querying based on severity, services, date ranges, and free-text, providing comprehensive insight into log data.

posthog

Features

  • Supports filtering logs by severity levels including trace, debug, info, warn, error, and fatal.
  • Allows filtering logs by specific service names to isolate issues per service.
  • Enables date range filtering to focus on logs within precise timeframes.
  • Provides free text search to quickly find relevant log entries based on keywords.
  • Supports pagination with cursor-based navigation and ordering of results by latest or earliest timestamps.

Benefits

  • Streamlines troubleshooting by quickly locating relevant log entries across services.
  • Improves visibility into application performance and errors through detailed log filtering.
  • Saves time by narrowing down large log datasets with multiple filter options.
  • Enhances reliability of debugging by providing trace information linked to logs.
  • Facilitates monitoring and proactive issue detection via comprehensive search capabilities.

Description

Search and query logs in the project. Supports filtering by severity levels (trace, debug, info, warn, error, fatal), service names, date range, and free text search. Returns log entries with their attributes, timestamps, and trace information. Supports pagination via cursor.

Parameters

8 parameters

NameTypeDescription
dateFromrequiredstring

Start of date range (ISO 8601 format, e.g., "2024-01-01T00:00:00Z")

dateTorequiredstring

End of date range (ISO 8601 format, e.g., "2024-01-02T00:00:00Z")

severityLevelsstring[]

Filter by severity levels (trace, debug, info, warn, error, fatal)

serviceNamesstring[]

Filter by service names

searchTermstring

Free text search term to filter logs

orderByenum

Order results by timestamp (default: latest)

limitinteger

Maximum number of results (1-1000, default: 100)

afterstring

Cursor for pagination (from previous response nextCursor)

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .