I'm new to logstash and trying to make a proof of concept to reindex an
already created Index (This index is not logs but standard files like
.doc/pdf/emails etc). It will be greatly appreciated if you answer my
question below and share your thoughts.
Can we reindex a non-log index by using logstash and keep the mappings
of old index? If someone in this forum has tried it, please share your
experience for the steps involved to achieve this.
My Observation:
By running the below configuration, elasticsearch is able to reindex but at
the same time changes the mapping of new index. It also changed the index
type to doc/text,html etc.
I think that's because elasticsearch parses the incoming JSON object from
logstash message field via tika and determines the object type.
I know we could define our own indexing template and make mapping=strict
but will that resolve the issue?
Here Input is any filesdata index created by elasticsearch and output is a
new index. My logstash conf file looks like below
input {
elasticsearch {
host => "10.0.0.10"
port => "9200"
index => "filesdata"
scroll => "1m"
}
}
I'm new to logstash and trying to make a proof of concept to reindex an
already created Index (This index is not logs but standard files like
.doc/pdf/emails etc). It will be greatly appreciated if you answer my
question below and share your thoughts.
Can we reindex a non-log index by using logstash and keep the mappings
of old index? If someone in this forum has tried it, please share your
experience for the steps involved to achieve this.
My Observation:
By running the below configuration, elasticsearch is able to reindex but
at the same time changes the mapping of new index. It also changed the
index type to doc/text,html etc.
I think that's because elasticsearch parses the incoming JSON object from
logstash message field via tika and determines the object type.
I know we could define our own indexing template and make mapping=strict
but will that resolve the issue?
Here Input is any filesdata index created by elasticsearch and output is a
new index. My logstash conf file looks like below
input {
elasticsearch {
host => "10.0.0.10"
port => "9200"
index => "filesdata"
scroll => "1m"
}
}
On Monday, February 16, 2015 at 7:54:34 AM UTC+11, Sumit Arora wrote:
I'm new to logstash and trying to make a proof of concept to reindex an
already created Index (This index is not logs but standard files like
.doc/pdf/emails etc). It will be greatly appreciated if you answer my
question below and share your thoughts.
Can we reindex a non-log index by using logstash and keep the mappings
of old index? If someone in this forum has tried it, please share your
experience for the steps involved to achieve this.
My Observation:
By running the below configuration, elasticsearch is able to reindex but
at the same time changes the mapping of new index. It also changed the
index type to doc/text,html etc.
I think that's because elasticsearch parses the incoming JSON object from
logstash message field via tika and determines the object type.
I know we could define our own indexing template and make mapping=strict
but will that resolve the issue?
Here Input is any filesdata index created by elasticsearch and output is a
new index. My logstash conf file looks like below
input {
elasticsearch {
host => "10.0.0.10"
port => "9200"
index => "filesdata"
scroll => "1m"
}
}
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.