Configure two outputs in Logstash

Logstash is a log aggregator that collects data from various input sources, performs various transformations and enhancements, and then sends the data to various supported output destinations.
Is it possible to configure two outputs in the same Logstash config file?

  • Elasticsearch
  • AWS


Can you give me an example of configuring two outputs?

Just put as much as output your want, make sure desired output have a plugin here

output {
  elasticsearch { hosts => ["localhost:9200"] }
  stdout { codec => rubydebug }
   s3 {
        access_key_id => "1234",
        secret_access_key => "secret",
        region => "eu-west-1",
        bucket => "logstash-test",
        additional_settings => {
          "force_path_style" => true,
          "follow_redirects" => false

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