# Forwarding logs from 4.7 to external logstash via filebeat

**URL:** <https://discuss.elastic.co/t/forwarding-logs-from-4-7-to-external-logstash-via-filebeat/290751>\
**Category:** Logstash\
**Created:** [December 2, 2021, 10:36am UTC](https://discuss.elastic.co/t/forwarding-logs-from-4-7-to-external-logstash-via-filebeat/290751 "2021-12-02T10:36:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabarivijay88](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sabarivijay88](https://discuss.elastic.co/u/sabarivijay88)\
**Post date:** [December 2, 2021, 10:36am UTC](https://discuss.elastic.co/t/forwarding-logs-from-4-7-to-external-logstash-via-filebeat/290751/1 "2021-12-02T10:36:17Z")

</div>

Hi Team,

We have deployed filebeat v7.15 daemon sets on Openshift v4.7

We are able to connect external logstash by using default path: /var/log/containers/\*.log

We need to setup only one particular Openshift project application log path and it needs to be forwarded to external logstash.

filebeat.yml: |-  
filebeat.inputs:  
- type: container  
paths:  
- /var/log/containers/\*.log  
processors:  
- add\_kubernetes\_metadata:  
host: ${NODE\_NAME}  
matchers:  
- logs\_path:  
logs\_path: "/var/log/containers/"

Application log path inside project pods is /opt/eap/standalone/logs/test.log

Kindly help me with the configuration yaml to forward this application log path to external log stash and to visualise it on kibana.

Thanks in advance

---

<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:** [December 30, 2021, 10:37am UTC](https://discuss.elastic.co/t/forwarding-logs-from-4-7-to-external-logstash-via-filebeat/290751/2 "2021-12-30T10:37:03Z")

</div>

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