In this case you have to ingest the logs with rsyslog and forward them from there to Graylog.
The Graylog syslog input has to listen on another (unique!) port, i. e. not 514.
See https://github.com/Graylog2/graylog-guide-syslog-linux/blob/master/README.md for details.