Hi,
I am working on ELK & Filebeat(6.4.0 version),i want to visualize the apache2 and mysql logs on kibana dashboard through filebeat.I enabled the modules in modules.d and giving the log path to apache2.yml & mysql.yml file.But the kibana is visualizing only var/log/yum.log files not apache2 logs, in the dashboard getting " No results displayed because all values equal 0".Can you please help me how to solve that issue.
please find that my filebeat.yml file
#=========================== Filebeat inputs =============================
filebeat.inputs:
- type: log
Change to true to enable this input configuration.
enabled: truePaths that should be crawled and fetched. Glob based paths.
paths:
#- /var/log/syslog- /usr/local/java/C2S_LOGS/*.log
#============================= Filebeat modules ===============================
filebeat.config.modules:
Glob pattern for configuration loading
path: ${path.config}/modules.d/*.ymlSet to true to enable config reloading
reload.enabled: false
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3
#============================== Kibana =====================================
setup.kibana:
host: "10.02.1.82:5601"
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:Array of hosts to connect to.
hosts: ["10.02.1.82:9200"]
protocol: "http"
username: "elastic"
password: "changeme" - /usr/local/java/C2S_LOGS/*.log
#----------------------------- Logstash output --------------------------------
#output.logstash:
The Logstash hosts
hosts: ["10.02.1.82:5044"]
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch:
logging.metrics.period: 10s
Thanks in advance,
Sri.