Is there a way to combine both with scripted field somehow so i can be able to search in both indexes using the same field name (without reindexing or using aliases)?
Scripted fields only work on individual docs within an index. So they can't aggregate data over multiple docs or access data in other indices.
You can create an index pattern in Kibana which lists multiple indices (very similar to using an index alias).
But if the field names are different, you would have to define a field alias on one of the indices for a search to work on both.
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.