can logstash container logs be configured using logstash.yml file to a specific path?

In normal logstash we have a config folder inside we will configure the logs and other stuff. Is this possible to do inside the container also.

Source: StackOverflow