I've created many visualiations based on an index called (say) "myindex", but now I want to import new data into a different index (it's a different customers data).
Is there any way I can easily re-use the visualisation I already have and simply alter the index being used?
Easy? Not really. But may be you can "hack" a bit by exporting Kibana data to JSON (there is an option in Kibana for that), then modify the JSON and reimport it...
Anyway, I'm moving your question to #kibana so experts there may answer better.
Hmm okay. I was really hoping there was a simpler way of doing this. I guess I could just put everything into a single index. In logstash I'm also capturing the directory path from where the data was imported as a field, so I guess I could use this to seperate the data.
Or you can also delete the index field and assign it a search, which would make you easier to switch index-patterns on the future just changing the index pattern of the search in discover and saving it, but remember that both indices the older and the newer must have the same fields and mappings, if you have adopted ECS the switch with this method should be easier
To assign it a search you just have first to get searchid, for this open the search on discover and take it from the url as shown in the image:
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.