# Syslog to elastic stack on kubernetes/openshift

**URL:** <https://discuss.elastic.co/t/syslog-to-elastic-stack-on-kubernetes-openshift/326068>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [February 21, 2023, 12:50pm UTC](https://discuss.elastic.co/t/syslog-to-elastic-stack-on-kubernetes-openshift/326068 "2023-02-21T12:50:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 22, 2023, 4:33pm UTC](https://discuss.elastic.co/t/syslog-to-elastic-stack-on-kubernetes-openshift/326068/4 "2023-02-22T16:33:02Z")

</div>

> [@splitmessage88](#):
>
> I believe it's a elastic issue/problem since I have seen the same issue on multiple places and this is one of the greatest function that elastic have, so it would be nice to have atleast one example to get your customers up and running.

I do not work for Elastic, I just volunteer on this forum, and while I agree that the documentation does not always help and it could have more examples, I don't think that this specific issue is a Elastic issue.

Basically to receive external data an agent needs to be able to listen on a port, so while configuring the agent you need to set the host as `0.0.0.0` to make it listen on all IP availables and choose any port.

For the agent it doesn't matter if you are running it on a VM, a bare metal server or a container, you just need to make sure that the external sources of data can reach that ip address and that port and this is not an Elastic issue, it is an Infrastructure and Network issue.

In this case, if you already have the agent listening on the container IP address on port 9001, then there is nothing else to configure on Elastic tools, _everything else is a network/infrastructure issue._

I do not use Openshift, so I have no idea how you would configure this in Openshift, but you basically need to forward the connections to your openshift cluster to the container with the elastic agent on the specific port.

---

_[View the full topic](https://discuss.elastic.co/t/syslog-to-elastic-stack-on-kubernetes-openshift/326068)._
