When I started to send data from logstash to elasticsearch the format was set to string for several inputs.
I'd like to change the format from string to integer, but it looks like it requires reindexing the whole stuff.
So I started to search how to reindex my logstash-* to logstashnew-* and change the format of some data from string to integer. (for the fields labelled "crsscore", "sentbyte", "rcvdbyte", "sentpkt" and "rcvdpkt").
All the examples I found so far use logstash with a single index.
Is it possible to process all indexes using a wildcard in the logstash input to be able to convert the format from string to integer when creating the new one ?
Thanks for the hint, but I still have an error with docinfo.
08:42:12.345 [[main]<elasticsearch] ERROR logstash.pipeline - A plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::Elasticsearch hosts=>["elasticsearch-srv.europa.net"], index=>"logstash-2017.02.02", query=>"*", docinfo=>true, id=>"d0a8a12677067754d1a5d6720046586bafd939db-1", enable_metric=>true, codec=><LogStash::Codecs::JSON id=>"json_eef2e278-5651-4e5f-9dce-aa96ff2a7137", enable_metric=>true, charset=>"UTF-8">, size=>1000, scroll=>"1m", docinfo_target=>"@metadata", docinfo_fields=>["_index", "_type", "_id"], ssl=>false>
Error: [400] {"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to derive xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"},"status":400}
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.