As for storing logs in operational storage, how can it be configured to set a value, for example, 6 months, the configuration is in kibana.yml correctly?
Managing the retention of needed/production data can be done in several ways, but it can't be done in /etc/kibana/kibana.yml.
/etc/kibana/kibana.yml
Two methods are most commonly used to maintain a specific amount of data in a cluster:
GUI: Plugin Index-Management => https://kb.energylogserver.com/en/latest/04-User_Manual/04-User_Manual.html#index-management
CLI: https://kb.energylogserver.com/en/latest/04-User_Manual/04-User_Manual.html#curator-elasticsearch-index-management-tool
I recommend using the Index-Management plugin because you can view the policies provided with the product and write your own based on that.