Search raw log entries by time range, severity, text, and source fields.
scope(required): provider-specific scope valueseverity(optional):DEBUG | INFO | NOTICE | WARNING | ERROR | CRITICAL | ALERT | EMERGENCYstart_time(optional): ISO timestamp or relative value like1h,30m,7d(default1h)end_time(optional): ISO timestamp or relative valuetext_filter(optional): text to search forresource_type(optional): provider-specific source hintlog_name(optional): provider-specific log namelimit(optional):1..500(default50)
query_logs(
scope="http://localhost:9200",
resource_type="logs-*",
start_time="2h",
severity="ERROR",
text_filter="payment failed",
limit=100
)
Array of entries with fields like:
timestampseveritymessageresource_typelog_nametrace_id