I'm a novice elasticsearch user (I've recently begun monitoring a cluster
with logstash, elasticsearch and kibana. I'd like to be able, via cron, to
dump the last 15 minutes of logging data received to an external filesystem
(which will be pruned to only keep the last week or so of dumps). I'd then
like to import these files into a clean ES environment and, thereby, have
essentially the last week from the original ES environment. Is this
possible?
you could use a scroll request for this task with a specific query. See
As this simply returns JSON, you could use another script to import it into
another elasticearch environment. If you need some sort of backup
functionality, the snapshot/restore API might be interesting as well, see
I'm a novice elasticsearch user (I've recently begun monitoring a cluster
with logstash, elasticsearch and kibana. I'd like to be able, via cron, to
dump the last 15 minutes of logging data received to an external filesystem
(which will be pruned to only keep the last week or so of dumps). I'd then
like to import these files into a clean ES environment and, thereby, have
essentially the last week from the original ES environment. Is this
possible?
As this simply returns JSON, you could use another script to import it
into another elasticearch environment. If you need some sort of backup
functionality, the snapshot/restore API might be interesting as well, see Elasticsearch Platform — Find real-time answers at scale | Elastic
--Alex
On Sat, Apr 12, 2014 at 7:18 PM, nyaqua <bote...@gmail.com <javascript:>>wrote:
Greetings all,
I'm a novice elasticsearch user (I've recently begun monitoring a cluster
with logstash, elasticsearch and kibana. I'd like to be able, via cron, to
dump the last 15 minutes of logging data received to an external filesystem
(which will be pruned to only keep the last week or so of dumps). I'd then
like to import these files into a clean ES environment and, thereby, have
essentially the last week from the original ES environment. Is this
possible?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.