---
title: "Search and count the log line hits on every provided host"
method: GET
path: "/srch/index/search/count_service_logs"
tags: ["indexSearch"]
---

# Search and count the log line hits on every provided host

`GET /srch/index/search/count_service_logs`

## Query parameters

- `search_query` 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)
  - `count_per_host` object — count of log lines that matched the query per hostname

---

[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/c3a7465c46bb/schema)
