# Troubleshooting Elastalerts

**URL:** <https://discuss.elastic.co/t/troubleshooting-elastalerts/230628>\
**Category:** Elasticsearch\
**Created:** [April 30, 2020, 7:49pm UTC](https://discuss.elastic.co/t/troubleshooting-elastalerts/230628 "2020-04-30T19:49:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitchell.dyer](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mitchell.dyer](https://discuss.elastic.co/u/mitchell.dyer)\
**Post date:** [April 30, 2020, 7:49pm UTC](https://discuss.elastic.co/t/troubleshooting-elastalerts/230628/1 "2020-04-30T19:49:36Z")

</div>

I am trying to create an alert that shows as invalid in Elastalerts. Need help seeing why it is failing. Here is the query for the rule.

```auto
doc_type: doc
filter:
- query_string:
    query: |
      node_app: [hidden]
      AND client_guid: "[hidden]"
      AND action: DISCOVERED 
index: logstash-*
type: flatline
threshold: default
timeframe: 
    hours: 24
aggregation:
    schedule: '* 7 * * 2,3,4,5,6 *'

```

I have hidden values for security and privacy reasons. Please help me understand what is causing this rule to be invalid.

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 28, 2020, 7:49pm UTC](https://discuss.elastic.co/t/troubleshooting-elastalerts/230628/2 "2020-05-28T19:49:38Z")

</div>

Closed on May 28, 2020, 7:49pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
