页面“Filebeat redis log”与“Filebeat nginx log”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
 
 
第1行: 第1行:
[[category:ops]]  
+
[[category:ops]]
=kibnana 后台=
 
<pre>
 
Add data -> Logs  -> Redis logs
 
  
  
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.12.0-amd64.deb
 
sudo dpkg -i filebeat-7.12.0-amd64.deb
 
  
  
Modify /etc/filebeat/filebeat.yml to set the connection information:
+
systemctl daemon-reload
  
output.elasticsearch:
+
=see also=
  hosts: ["<es_url>"]
 
  username: "elastic"
 
  password: "<password>"
 
setup.kibana:
 
  host: "<kibana_url>"
 
  
Where <password> is the password of the elastic user, <es_url> is the URL of Elasticsearch, and <kibana_url> is the URL of Kibana.
+
https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-nginx.html
 
 
 
 
 
 
Enable and configure the redis module
 
 
 
sudo filebeat modules enable redis
 
 
 
Modify the settings in the /etc/filebeat/modules.d/redis.yml file.
 
 
 
 
 
Start Filebeat
 
 
 
The setup command loads the Kibana dashboards. If the dashboards are already set up, omit this command.
 
 
 
sudo filebeat setup
 
sudo service filebeat start
 
 
 
 
 
Module status 点击  check data
 
 
 
 
 
</pre>
 

2021年4月27日 (二) 06:21的版本