zz22 发表于 2019-1-28 13:35:41

CentOS6 搭建ELK套件搭建日志分析和监控平台

# vim /usr/local/logstash/etc/logstash_agent.conf  
input {
  
file {
  
    type => "http.access"
  
    path => ["/var/log/httpd/access_log"]
  
}
  

  
file {
  
    type => "http.error"
  
    path => ["/var/log/httpd/error_log"]
  
}
  

  
file {
  
    type => "messages"
  
    path => ["/var/log/messages"]
  
}
  
}
  

  
output {
  
elasticsearch {
  
    host => "10.111.121.22"
  
    port => 9300
  
}
  
}
  
# nohup /usr/local/logstash/bin/logstash -f /usr/local/logstash/etc/logstash_agent.conf &


页: [1]
查看完整版本: CentOS6 搭建ELK套件搭建日志分析和监控平台