![mark](https://img.php1.cn/3cd4a/1eebe/cd5/c72d78d7317a9e8e.webp)
实战
logstash配置
input { beats {port => 5044}
}output {elasticsearch {hosts => ["192.168.126.17:9200"]}stdout { codec => rubydebug }
}
filebeat配置
filebeat.prospectors:
- input_type: logpaths:- /var/log/*.logencoding: utf-8output.logstash:hosts: ["192.168.126.17:5044"]
elasticsearch配置
# filename : config/elasticsearch.yml
node.name: t17
path.data: ./data
path.logs: ./logs
network.host: 192.168.126.17http.cors.enabled: true
http.cors.allow-origin: "*"
操作简单看
![mark](https://img.php1.cn/3cd4a/189d8/b64/5b34b53b79a39fdd.jpeg)