##
##  logstash.conf -- Logstash server configuration
##

input {
    file {
        path            => "@l_prefix@/var/logstash/input/input.log"
    }
    #   udp {
    #       host            => "127.0.0.1"
    #       port            => 28001
    #       codec           => "plain"
    #   }
    #   tcp {
    #       host            => "127.0.0.1"
    #       port            => 28002
    #       codec           => "plain"
    #   }
    #   http {
    #       host            => "127.0.0.1"
    #       port            => 28003
    #       codec           => "json"
    #   }
    #   lumberjack {
    #       host            => "127.0.0.1"
    #       port            => 28004
    #       ssl_certificate => "@l_prefix@/etc/x509/example-client.crt.pem"
    #       ssl_key         => "@l_prefix@/etc/x509/example-client.key.pem"
    #   }
    #   redis {
    #       host            => "127.0.0.1"
    #       port            => 6379
    #       codec           => "json"
    #       data_type       => "channel"
    #       key             => "logstash"
    #   }
}

filter {
}

output {
    file {
        path            => "@l_prefix@/var/logstash/output/output.log"
        codec           => "json"
    }
    #   elasticsearch {
    #       host            => "127.0.0.1"
    #   }
    #   statsd {
    #       host            => "127.0.0.1"
    #       increment       => "example.%{status}"
    #   }
}

