Unable to see elasticsearch.log file

After elasticsearch configuration i have restarted the service and service is up, but when i tried to see elasticsearch log i found below. wondering how log file is missing. Can some one help me on this.

sudo tail -30f /var/log/elasticsearch/elasticsearch.log
tail: cannot open '/var/log/elasticsearch/elasticsearch.log' for reading: No such file or directory
tail: no files remaining

sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2020-11-13 15:03:27 CET; 3 days ago
Docs: https://www.elastic.co
Main PID: 588889 (java)
Tasks: 51 (limit: 49608)
Memory: 1.2G
CGroup: /system.slice/elasticsearch.service
├─588889 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch ->
└─589080 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

Nov 13 15:02:48 el9673.int.corp systemd[1]: Starting Elasticsearch...
Nov 13 15:03:27 el9673.int.corp systemd[1]: Started Elasticsearch.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.