Thanks for your response. One more issue with my filebeat is like, I had made set up for log files (path.logs) as below. But when I check same folder in host there is no log file getting generated. Is there any thing I am missing here.
# ================================== Logging ===================================
# Sets log level. The default log level is info.
# Available log levels are: error, warning, info, debug
#logging.level: debug
# At debug level, you can selectively enable logging only for some components.
# To enable all selectors use ["*"]. Examples of other selectors are "beat",
# "publisher", "service".
#logging.selectors: ["*"]
path.logs: /var/log/filebeat
By default for systemd installation, the logs path is /var/log/filebeat unless overridden.
You could try this option to explicitly specify different path by specifying the environment variable BEAT_PATH_OPTS and restarting the service as outlined here
While checking the filebeat configuration. It shows the below error but the "filebeat.yml" file already present in the location. Could you please help me why it is showing these kind of errors.
[root@cb-1 bin]# ./filebeat test config
Exiting: error loading config file: stat filebeat.yml: no such file or directory
[root@cb-1 bin]# ls -ltr /etc/filebeat/filebeat.yml
-rw-------. 1 root root 9011 Sep 28 11:28 /etc/filebeat/filebeat.yml
[root@cb-1 bin]# ./filebeat test output
Error initializing beat: error loading config file: stat filebeat.yml: no such file or directory
[root@cb-1 bin]#
Please find the service section of filebeat.service file but still log file for filebeat not getting generated. Any clue why it is not getting generated.
Did you got any chance to look into the above error which I faced during filebeat test config. I had followed the instruction mentioned in elastic official documentation for filebeat.
./filebeat test config
Looks like you installed the filebeat as systemd service, but trying to run commands as a tarball or binary installation.
You should instead just run filebeat test config without ./
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.