# Logstash - seconds part is missing for ES plugin

**URL:** <https://discuss.elastic.co/t/logstash-seconds-part-is-missing-for-es-plugin/214048>\
**Category:** Logstash\
**Created:** [January 7, 2020, 12:25pm UTC](https://discuss.elastic.co/t/logstash-seconds-part-is-missing-for-es-plugin/214048 "2020-01-07T12:25:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![psiva017](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/psiva017/32/60382_2.png) [@psiva017](https://discuss.elastic.co/u/psiva017)\
**Post date:** [January 7, 2020, 12:25pm UTC](https://discuss.elastic.co/t/logstash-seconds-part-is-missing-for-es-plugin/214048/1 "2020-01-07T12:25:35Z")

</div>

I need to monitor the ES. I tries with following logstash config.

input{  
elasticsearch {  
hosts =\> ["[http://localhost:9200](http://localhost:9200)"]  
index =\> "my\_index"  
query =\> '{"query":{"match\_all": {}}}'  
schedule =\> "0-59 \* \* \* \*"  
}  
}

output {  
stdout { codec =\> rubydebug }  
file {  
path =\> "C:\Users\log"

}

But it is not running every second.  
Also there is no seconds part in CRON exp. It is starting from min.

Is there anything that I need to change here ?

Thanks in advance.

---

<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:** [February 4, 2020, 12:25pm UTC](https://discuss.elastic.co/t/logstash-seconds-part-is-missing-for-es-plugin/214048/2 "2020-02-04T12:25:36Z")

</div>

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