Error when start the elastics services

Hello

I'm installing a elastics services on a server ubuntu 22.4 but when I start the services I recibet the next error:

[sudo] password for toor: 
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xeu elasticsearch.service" for details.

this is the code

toor@monitoreodered:~$ sudo systemctl start elasticsearch

this is the log:

× elasticsearch.service - Elasticsearch
     Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendo>
     Active: failed (Result: exit-code) since Tue 2023-12-19 22:02:10 UTC; 8mi>
       Docs: https://www.elastic.co
    Process: 4513 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p>
   Main PID: 4513 (code=exited, status=1/FAILURE)
        CPU: 4.919s

Dec 19 22:02:10 monitoreodered systemd-entrypoint[4513]:     ^
Dec 19 22:02:10 monitoreodered systemd-entrypoint[4513]:         at org.yaml.s>
Dec 19 22:02:10 monitoreodered systemd-entrypoint[4513]:         at org.yaml.s>
Dec 19 22:02:10 monitoreodered systemd-entrypoint[4513]:         at org.yaml.s>
Dec 19 22:02:10 monitoreodered systemd-entrypoint[4513]:         at com.faster>
Dec 19 22:02:10 monitoreodered systemd-entrypoint[4513]:         ... 13 more
Dec 19 22:02:10 monitoreodered systemd[1]: elasticsearch.service: Main process>
Dec 19 22:02:10 monitoreodered systemd[1]: elasticsearch.service: Failed with >
Dec 19 22:02:10 monitoreodered systemd[1]: Failed to start Elasticsearch.
Dec 19 22:02:10 monitoreodered systemd[1]: elasticsearch.service: Consumed 4.9>
lines 1-18/18 (END)

An ExecStart= process belonging to unit elasticsearch.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Dec 19 22:02:10 monitoreodered systemd[1]: elasticsearch.service: Failed with >
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit elasticsearch.service has entered the 'failed' state with result '>
Dec 19 22:02:10 monitoreodered systemd[1]: Failed to start Elasticsearch.
░░ Subject: A start job for unit elasticsearch.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit elasticsearch.service has finished with a failure.
░░ 
░░ The job identifier is 3012 and the job result is failed.
Dec 19 22:02:10 monitoreodered systemd[1]: elasticsearch.service: Consumed 4.9>
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit elasticsearch.service completed and consumed the indicated resourc>
lines 773-795/795 (END)


You have a systemd error, you need to check the /var/log/syslog file for any hint why the service failed to start.

Try to start it again to get fresh logs and look at the mentioned file.