# Can filebeat be can initialed using initcontiner to forward logs

**URL:** <https://discuss.elastic.co/t/can-filebeat-be-can-initialed-using-initcontiner-to-forward-logs/261649>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [January 20, 2021, 12:54pm UTC](https://discuss.elastic.co/t/can-filebeat-be-can-initialed-using-initcontiner-to-forward-logs/261649 "2021-01-20T12:54:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srini54](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@srini54](https://discuss.elastic.co/u/srini54)\
**Post date:** [January 20, 2021, 12:54pm UTC](https://discuss.elastic.co/t/can-filebeat-be-can-initialed-using-initcontiner-to-forward-logs/261649/1 "2021-01-20T12:54:48Z")

</div>

We are exloring options to trigger the filebeat process as part of an initContainer to push the tomcat logs. Is it possible to initialize scirpt to copy tomcat log to another volume and push it to logstash/elastic.

Please let me know if such thing is possible

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 17, 2021, 2:55pm UTC](https://discuss.elastic.co/t/can-filebeat-be-can-initialed-using-initcontiner-to-forward-logs/261649/2 "2021-02-17T14:55:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
