# Logstash write to influx and elastic

**URL:** <https://discuss.elastic.co/t/logstash-write-to-influx-and-elastic/85797>\
**Category:** Logstash\
**Created:** [May 15, 2017, 3:45pm UTC](https://discuss.elastic.co/t/logstash-write-to-influx-and-elastic/85797 "2017-05-15T15:45:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob\_monty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bob_monty/32/102434_2.png) [@bob\_monty](https://discuss.elastic.co/u/bob_monty)\
**Post date:** [May 15, 2017, 3:45pm UTC](https://discuss.elastic.co/t/logstash-write-to-influx-and-elastic/85797/1 "2017-05-15T15:45:43Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 18, 2017, 5:24am UTC](https://discuss.elastic.co/t/logstash-write-to-influx-and-elastic/85797/2 "2017-05-18T05:24:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 15, 2017, 5:24am UTC](https://discuss.elastic.co/t/logstash-write-to-influx-and-elastic/85797/3 "2017-06-15T05:24:14Z")

</div>

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