# JSON Templates

**URL:** https://community.graylog.org/c/templates-and-rules-exchange/json-templates/17.md

[Latest](https://community.graylog.org/latest.md) · [Categories](https://community.graylog.org/categories.md) · [Tags](https://community.graylog.org/tags.md)

---

## [About the JSON Templates category](https://community.graylog.org/t/about-the-json-templates-category/20663)

<div class="topic-metadata">

**Author:** [@dscryber](https://community.graylog.org/u/dscryber)\
**Replies:** 0

</div>

---

## [Which API query to use to count logs](https://community.graylog.org/t/which-api-query-to-use-to-count-logs/24495)

<div class="topic-metadata">

**Author:** [@UserIT529](https://community.graylog.org/u/UserIT529)\
**Replies:** 3\
**Last updated:** [June 28, 2022, 9:15pm UTC](https://community.graylog.org/t/which-api-query-to-use-to-count-logs/24495 "2022-06-28T21:15:55Z")

</div>

Hello, everyone, I haven't been using Graylog for longPreformatted text. Now I have it set up and can monitor four servers. I would now like to use the API to query whether a server has written log files in the last few …
