We collect the logs of the container of our java application on ecs with the container of Filebeat.
When any one or multiple container in the AWS ECS intance restart continously, filebeat container stops pushing logs to elasticsearch.
And if we restart the filebeat container then the logs starts coming.
When I checked the Filebeat log, there were no errors.
I think that you need to use container as the config.type.
Try to use this configuration (below the co.elastic.logs/pipeline) with docker as a autodiscover provider and container as a template.config.type.
Also if you are not using hints based autodiscovery - hints.enabled can be removed from the configuration.
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.