I am trying to send logs from filebeat to elasticsearch. Here is the filbeat.yml
filebeat.inputs:
- type: filestream
id: my-filestream-id
enabled: true
paths:
- C:\ProgramData\sample_logs\sample.log
- type: log
enabled: true
paths:
- C:\ProgramData\sample_logs\sample.log
filebeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["elastic_ip:9200"]
# Protocol - either `http` (default) or `https`.
#protocol: "https"
# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
username: "elastic"
password: "pwd"
Have enabled elasticsearch module.
The command
.\filebeat -e -c "C:\Program Files\Filebeat\filebeat.yml" test output
gives connection ok result.
.\filebeat -e -c "C:\Program Files\Filebeat\filebeat.yml" -d "publish"
Displays alot of entries on the console.
on kibana, When i navigate to discover tab i am getting an option of creating data view for index pattern filebeat-8.7.0. So the index has been created. But there are no logs on the dashboard
Hey, I received the logs. I was wrong with the file path. The file was saved as sample.log.txt and i was specifying sample.log
Thank you so much for the quick response
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.