Output to both Kafka and Elasticsearch

Hello All,

I would like to know that if Logstash is capable of outputting the filtered data to both Kafka and Elasticsearch, see example below:

    input {
    }

    filter {
      # dissect scope
      dissect {
        # do dissecting
      }
    }

    output {
      elasticsearch {
                hosts => ["localhost:9200"]
      }
      kafka {
          codec => json
          topic_id => "mytopic"
      }
    }

Is it going to work?

Yes, you can output events to multiple destinations.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.