# NTP server time sync issue - how to write alerts (Query DSL )

**URL:** <https://discuss.elastic.co/t/ntp-server-time-sync-issue-how-to-write-alerts-query-dsl/378006>\
**Category:** Elasticsearch\
**Created:** [May 10, 2025, 7:28am UTC](https://discuss.elastic.co/t/ntp-server-time-sync-issue-how-to-write-alerts-query-dsl/378006 "2025-05-10T07:28:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 10, 2025, 3:14pm UTC](https://discuss.elastic.co/t/ntp-server-time-sync-issue-how-to-write-alerts-query-dsl/378006/4 "2025-05-10T15:14:12Z")

</div>

Closing as duplicate of:

> [@\[Urgent\] which 2 fields in Elastic Search can be made as time unsync comparsion?](https://discuss.elastic.co/t/urgent-which-2-fields-in-elastic-search-can-be-made-as-time-unsync-comparsion/378007):
>
> { "query": { "query\_string": { "query": "("NTP server status changes to unreachable" OR "Global time setting changed by NTP") AND devname:(ABC)", "default\_field": "logdesc" } } }

---

_[View the full topic](https://discuss.elastic.co/t/ntp-server-time-sync-issue-how-to-write-alerts-query-dsl/378006)._
