I am using Magento 2.2.2. I have set up XML in Catalog->Sitemap and in Marketing-> Generate XML. But when I opened the Sitemap XML, it is not updated at all. Please let me know if I'm missing something or where I can check the errors logs if there are.
The error logs for Magento 2 are found under the var/log
directory.
All system logs, cron logs, update logs, and other log data (like debugging and connections) are also found there.
Also, make sure that your cron jobs are up and running.
You can try running bin php/magento cron:install
to make sure that the cron jobs are installed.
Then try running bin php/magento cron:run
to execute the cron jobs.
Hope this helps!