Logstash write to influx and elastic


(Bob Monty) #1

Greetings
is it possible to write to 2 time series databases at the same time? For example influx and elasticsearch. Currently i'm writing only to influx:

    output {
       if [@influx_measurement] =~ /(SYS_.*)/ {
        influxdb {
          host => "nata01:8086"
          db => "TESTDB"
          retention_policy => "30days"
          use_event_fields_for_data_points => true
          }

Thanks,


(Magnus B├Ąck) #2

Yes, Logstash supports multiple outputs. Unless prevented by conditionals all events will be sent to all outputs.


(system) #3

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