Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- file {
- type => "application_log"
- path => [ "/var/www/logs/*.log" ]
- }
- }
- filter {
- if [type] == "application_log" {
- grok {
- patterns_dir => ["/etc/logstash/patterns"]
- match => ["message", "%{LIGHTTPD}"]
- }
- # geoip {
- # source => "clientip"
- # }
- # date {
- # match => [ "logdate", "yyyy-MM-dd HH:mm:ss,SSS" ]
- # }
- }
- }
- output {
- if [type] == "application_log" {
- # elasticsearch {
- # hosts => ["10.0.5.30:9200"]
- # index => "www2"
- # }
- stdout { }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement