Docker, ELK and log forwarding

I have a server hosting pfSense sending its logs to another server running an ELK container. The container has no problem on its own but I’m having trouble to get the logs from server A to server B. I forward the logs on server B but I have no idea how to get them and send them to the container. Any idea?