官方文档:

elastic.co/guide/en/logstash/7.14/advanced-pipeline.html

配置实例:

input {
    beats {
        port => "5044"
    }
}
 filter {
    grok {
        match => { "message" => "%{COMBINEDAPACHELOG}"}
    }
    geoip {
        source => "clientip"
        database =>"/usr/share/logstash/GeoLite2-City.mmdb"
    }
}
output {
    elasticsearch {
        hosts => ["http://192.168.199.39:9200"]
        index => "logstash-nginx-%{+YYYY-MM-dd}"
    }
    stdout { codec => rubydebug }
}