How to configure filebeat to store logs in elasticsearch correctly

Hi @Mirali_Rafiyev, welcome to our community!

This link might give you a broader perspective:

Dec 4th 2022: [EN] Ingesting JSON logs with Elastic-Agent (and/or Filebeat))

It primarily covers JSON parsing in the initial steps.