ELK/logstash

logstash + app-search

파아랑새 2019. 12. 10. 14:55

input {
    file {
        start_position => "beginning"
        path           => ["/opt/logstash-7.2.0/conf/test.json"]
        sincedb_path   => "/dev/null"
        codec          => "json"
    }
}

filter {
    mutate {
        remove_field => ["path", "@version", "@timestamp", "host"]
    }
}

output {
    stdout {}
    elastic_app_search {
        api_key => "private-fobwwhsirra3cgner79khnhi"
        engine  => "kimjunhyeon"
        url     => "http://172.16.40.139:3002"
        path    => "/api/as/v1/"
        id      => "test_01"
    }
}