File paths must be absolute, relative path specified error while running logstash on docker

I updated the docker-compose file and added

      - type: bind
        source: C:/logs/xyz
        target: /logstash/logs/xyz

in volumes under logstash