I need to monitor the ES. I tries with following logstash config.
input{
elasticsearch {
hosts => ["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.