In general opendistro works on top of ES.. Even i didnt find any particular documentation for the same on ES.
It only says about on how to create Templates and policies. To link policy to template I have to give policy id in template all by using API, but where to place them and what config has to be provided for policy is not given.
I want the templates and policy to be readily available and dont want to do it via API.
Also Output plugin of ES has a property called ilm_policy => ""
But documentation of ES is not very clear for ilm_policy & do not tell to provide path of the policy? or just the policyid? Where as it clearly mentions for template.
Logstash can indeed upload templates and do so via the APIs at startup. It does however not support OpenDistros ISM so you will need to set that up separately.
Yeah. As @Christian_Dahlqvist said, it provides another feature which is not ILM or based on ILM.
Again, if you really want to use opendistro and not the official distribution, you should really ask in their forum for help. May be they also rewrote a specific plugin for logstash.
@Christian_Dahlqvist / @dadoonet Yes, Can you point me to guide / any sample example to do it via logstash in case I opt out of Opendistro?. I am able to load only the template using the logstash output plugin but have no clue on policy loading without using API.
Also, is there a way to apply policies to existing indexes again without using api? (maybe by output plugin)
But that will make me to log-in to my multiple env/stage Kibana and then perform api operations manully. I am not sure if ES provide any feature as such.
I too feel, Elastic should provide generic script to update/automate policies/configItems/dashboards via files.
I've written certain scripts, but finds it painful to see which configs have changed using a CI/CD mechanism.
What I do is, I compare the "md5sum" of "type" and "visualization" fields of .kibana index to see if the file has changed. It is painful, but wished Elastic Provided an in-house facility
@Christian_Dahlqvist That was on my list but only as last option.. Coz, i thought I might be missing some links or part of documentation either from ES / Logstash or from Opendistro.
@kelk yeah, exactly ES should come up with such features.
Could you point me to your scripts, may be I could find something different in approach and also can you explain me more on comparing md5sum, visualization fields of . kibana stuff.
If I recall correctly it was possible to load index templates from file in early versions. This caused problems as the templates are applied cluster wide but supplied per node. Files on nodes could overwrite settings that had been changed through APIs. Having the user control this and apply it through APIs based on use case specific rules is IMHO better.
@abb
The idea is , our team puts .kibana dashboard as "files" to make all the environments consistent ( I presume you can extend to policy stores or any configs in ElasticSearch.) So all the files will be in central version control.
My script aims to get list of md5sum of the "type" and "visualization" fields (screenshot example) and put it into a csv in every release cycle and put the md5sum of the files too.
if anything changes for the file, it will be "POSTED" for those entries.
I can't put the script contents out as it is for the company, but wished Elastic provided it as built-in as it is painful to maintain the API list as such as lot of people feels its easy to work on files.
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.