JJJCR,
Yes, that config is correct in order to send the logs to a remote syslog server.
You may want to add source address & structured-date if required
set system syslog host x.x.x.x source-address x.x.x.x structured-data
Regarding "convert those english command to a command with open and close brackets?" Did you meant display set?
re0> show configuration system syslog | display set
set system syslog host x.x.x.x any any
set system syslog file messages any any