I need to pull data from elasticsearch with required matches on specific
host, res.statusCode indicating an error, and within the past hour and send
an email to the programmers with this information. The script will be run
hourly. Using curl, I am almost able to get it with this (not encoded for
easy reading):
curl http://localhost:9200/_search?+host:my.host.name +res.statusCode: [400
TO *]
But I can't figure out how to handle the time portion. Any suggestions or
a link to the answer?
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2f60b64c-df58-47e7-b91a-c72ad8095b70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.