How to create crontab file for user elastic search which is installed in user root

You opened a similar question with How to create a crontab file for user elasticsearch. Let's keep the discussion in a single place. Thanks.