---
title: "Search through service logs with a string query"
method: GET
path: "/srch/index/search/service_logs"
tags: ["indexSearch"]
---

# Search through service logs with a string query

`GET /srch/index/search/service_logs`

## Query parameters

- `search_query` string, required
- `mode` string, required
- `worker_group` string
- `hostname` string, required
- `min_ts` string, date-time
- `max_ts` string, date-time

## Response `200`

search results

- object
  - `query_parse_errors` string[] — a list of the terms that couldn't be parsed (and thus ignored)
  - `hits` LogSearchHit[] — log files that matched the query
    - `dancer` string

---

[API](https://skmtc.net/windmill/apis/windmill-api.md) · [All operations](https://skmtc.net/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/ece11d5a1cd7/schema)
